diff options
author | Shauren <shauren.trinity@gmail.com> | 2013-02-02 16:45:57 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2013-02-02 16:45:57 +0100 |
commit | b47cb65b03adc28513b3b888b0ed65599101b654 (patch) | |
tree | 8d3af5900d64cc5205ac862a0503de69534a59de | |
parent | 2976f940037dc1f87deeab4f388388147356c55e (diff) |
Core/Scripts: Allow persistent area auras to use DoCheckAreaTarget hook.
-rw-r--r-- | src/server/game/Spells/SpellScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp index 89ed223545f..6229a30a5f0 100644 --- a/src/server/game/Spells/SpellScript.cpp +++ b/src/server/game/Spells/SpellScript.cpp @@ -612,7 +612,7 @@ SpellValue const* SpellScript::GetSpellValue() bool AuraScript::_Validate(SpellInfo const* entry) { for (std::list<CheckAreaTargetHandler>::iterator itr = DoCheckAreaTarget.begin(); itr != DoCheckAreaTarget.end(); ++itr) - if (!entry->HasAreaAuraEffect()) + if (!entry->HasAreaAuraEffect() && !entry->HasEffect(SPELL_EFFECT_PERSISTENT_AREA_AURA)) sLog->outError(LOG_FILTER_TSCR, "Spell `%u` of script `%s` does not have area aura effect - handler bound to hook `DoCheckAreaTarget` of AuraScript won't be executed", entry->Id, m_scriptName->c_str()); for (std::list<AuraDispelHandler>::iterator itr = OnDispel.begin(); itr != OnDispel.end(); ++itr) |