diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-08-16 16:50:04 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-26 22:26:08 +0100 |
commit | f2ee365da43f851181c8a486e10325a95b75c55d (patch) | |
tree | b8cfec65fe1a6537b9e6e42cffe107880dee4b7e /src/server/game/Conditions/ConditionMgr.cpp | |
parent | 2d1a1d8ac31564744f30e001486ddc90f7ed0449 (diff) |
Core/SAI: Spell casts that cannot be executed because the unit is currently casting another spell will be retried asap with priority over other events (#25238)
* Core/SAI: Spell casts that cannot be executed because the unit is currently casting another spell will be retried asap with priority over other events
* Core/SAI: Re-sort the events only when needed
* Fix some priority reset and wrong mEventSortingRequired handling
* Code cleanup.
Sort only events loaded from db (not stored events, not timed action list).
* Code cleanup.
Raise priority of failed casts so they are retried before other spells
* Keep priority of the action fails and is rescheduled on next update
* Don't try recasting a spell in SMART_ACTION_CAST if there are multiple targets and at least 1 was successful
(cherry picked from commit ca25e8d0199730c0976ebc37317e9407aceccc34)
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
0 files changed, 0 insertions, 0 deletions