[DiscordArchive] How hard would it be to change the flag? Or add a new flag with the same behaviour sans cancelling o
[DiscordArchive] How hard would it be to change the flag? Or add a new flag with the same behaviour sans cancelling o
Archived author: Koekr • Posted: 2022-11-24T17:09:41.873000+00:00
Original source
How hard would it be to change the flag? Or add a new flag with the same behaviour sans cancelling on movement?
Archived author: Koekr • Posted: 2022-11-24T17:10:27.457000+00:00
Original source
I want to change auto-shot in a similar manner.
Archived author: robinsch • Posted: 2022-11-24T17:10:40.846000+00:00
Original source
It's fairly simple, just don't cancel it on movement.
Archived author: Foe • Posted: 2022-11-24T17:10:42.977000+00:00
Original source
Neither would be hard, but you can just update the function linked above
Archived author: Foe • Posted: 2022-11-24T17:11:49.059000+00:00
Original source
If you just want a special exception for auto shot specifically, then you just add an override for that specific spell in that function
Archived author: Foe • Posted: 2022-11-24T17:11:57.754000+00:00
Original source
Hacky but fine
Archived author: Koekr • Posted: 2022-11-24T17:15:37.526000+00:00
Original source
I've read a bit of Cmangos code, and in it I've seen bits where a general script checks for a specific spell ID when figuring out exceptions, is that similar to what you're talking about?
Archived author: Koekr • Posted: 2022-11-24T17:17:03.117000+00:00
Original source
Sorry if I'm asking a stupid question, I'm still getting to grips with the basics.
Archived author: robinsch • Posted: 2022-11-24T17:18:30.800000+00:00
Original source
Yeah you could make void Unit::_UpdateAutoRepeatSpell() not return in case of moving when autorepeat spell is 75, then you remove the flag from the spell and it *should* work while moving.
Archived author: Koekr • Posted: 2022-11-24T17:21:54.918000+00:00
Original source
Awesome, thanks