Core/Spell: fix target checks
- Aura will be applied at last moment possible (after damage) to prevent regressions on #18395 - Partial revert of 9b38a6352c0fe2499de54fd769aa1c721a410bda as it wasnt handling correctly checks without spells
This commit is contained in:
1 parent
5e6167ce46
commit
c889b81f2c
4 files changed
+101
-138
No files matched your search
@@ -468,11 +468,8 @@ class TC_GAME_API WorldObject : public Object, public WorldLocation
|
||||
void CastSpell(WorldObject* target, uint32 spellId, CastSpellExtraArgs const& args = { });
|
||||
void CastSpell(Position const& dest, uint32 spellId, CastSpellExtraArgs const& args = { });
|
||||
|
||||
bool IsValidAttackTarget(WorldObject const* target, SpellInfo const* bySpell = nullptr, bool spellCheck = true) const;
|
||||
bool IsValidSpellAttackTarget(WorldObject const* target, SpellInfo const* bySpell) const;
|
||||
|
||||
bool IsValidAssistTarget(WorldObject const* target, SpellInfo const* bySpell = nullptr, bool spellCheck = true) const;
|
||||
bool IsValidSpellAssistTarget(WorldObject const* target, SpellInfo const* bySpell) const;
|
||||
bool IsValidAttackTarget(WorldObject const* target, SpellInfo const* bySpell = nullptr) const;
|
||||
bool IsValidAssistTarget(WorldObject const* target, SpellInfo const* bySpell = nullptr) const;
|
||||
|
||||
Unit* GetMagicHitRedirectTarget(Unit* victim, SpellInfo const* spellInfo);
|
||||
|
||||
|
||||
Reference in new issue
Block a user