aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy@conmuc-l03 <none@none>2009-04-21 20:39:06 +0200
committerAndy@conmuc-l03 <none@none>2009-04-21 20:39:06 +0200
commit784d388069d4dae31c8f9043fef9ea2768de74f5 (patch)
treeb666a23c499af155fc43b69fd900561698848e7a /src
parent2ecf4550906909b06d33d6358822fc3f8a30e1cd (diff)
Added a Spell for KilJaeden (need it later)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 663fa7c8125..0296f12a34b 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5044,6 +5044,15 @@ void Aura::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 Aura::HandleAuraModPacifyAndSilence(bool apply, bool Real)