diff options
| author | QAston <qaston@gmail.com> | 2010-12-30 02:03:46 +0100 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2010-12-30 02:03:46 +0100 |
| commit | c8adcc95f9046235e6ce6ceac98324b406cbebf9 (patch) | |
| tree | 63eaf2e02409c055f9c53dd6d55c7edc6d9e2376 /src/server/game/Spells/SpellScript.cpp | |
| parent | 51b46987c3d5bc14f67ea6370e759f6b0bfd61c3 (diff) | |
Core/Unit: Move spell specific code from Unit::CalcAbsorbResist to AuraScripts.
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
| -rwxr-xr-x | src/server/game/Spells/SpellScript.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp index 482a185f590..e175e9d688e 100755 --- a/src/server/game/Spells/SpellScript.cpp +++ b/src/server/game/Spells/SpellScript.cpp @@ -447,6 +447,10 @@ bool AuraScript::_Validate(SpellEntry const * entry) if (!(*itr).GetAffectedEffectsMask(entry)) sLog->outError("TSCR: Spell `%u` Effect `%s` of script`%s` did not match dbc effect data - bound handler won't be executed", entry->Id, (*itr).ToString().c_str(), m_scriptName->c_str()); + for (std::list<EffectAbsorbHandler>::iterator itr = AfterEffectAbsorb.begin(); itr != AfterEffectAbsorb.end(); ++itr) + if (!(*itr).GetAffectedEffectsMask(entry)) + sLog->outError("TSCR: Spell `%u` Effect `%s` of script`%s` did not match dbc effect data - bound handler won't be executed", entry->Id, (*itr).ToString().c_str(), m_scriptName->c_str()); + return _SpellScript::_Validate(entry); } |
