diff options
| author | megamage <none@none> | 2009-04-22 17:52:01 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-22 17:52:01 -0500 |
| commit | e7e03d167e9ea2fa2d29b240b9597fb0a1c3b160 (patch) | |
| tree | e0418fa21c12ce9b57fea8f6d4ca3215990f7489 /src/game/SpellAuras.cpp | |
| parent | 1cd8ea8c1abbb1b110a0af36b60ec9d17c608da3 (diff) | |
| parent | dc326fdf2cd1320d07a65dcfaf3c9761d71489e0 (diff) | |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index c8b78b759c2..a41e791c38a 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -5390,6 +5390,15 @@ void AuraEffect::HandleAuraModPacify(bool apply, bool Real) m_target->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED); else m_target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED); + + + if(m_spellProto->Id == 45839){ + if(apply){ + m_target->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); + }else{ + m_target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); + } + } } void AuraEffect::HandleAuraModPacifyAndSilence(bool apply, bool Real) |
