aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaymoira <none@none>2009-02-13 23:50:04 +0100
committerBlaymoira <none@none>2009-02-13 23:50:04 +0100
commitffb5fb7445e7766c6eca0b4b2c4d254a89d91d0e (patch)
treee87edadcbdb016e112b2f0daa89e4714ad0dad71 /src
parent5f6705535b9ef5d37521a9078e7dea84a303ebe2 (diff)
*Remove Not attackable flags on escortAI start
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/npc/npc_escortAI.cpp1
-rw-r--r--src/game/SpellEffects.cpp12
2 files changed, 11 insertions, 2 deletions
diff --git a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
index fefe9278322..c8584424414 100644
--- a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
+++ b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
@@ -299,4 +299,5 @@ void npc_escortAI::Start(bool bAttack, bool bDefend, bool bRun, uint64 pGUID)
//Disable questgiver flag
m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
+ m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE + UNIT_FLAG_NOT_ATTACKABLE_2);
}
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 81fae9cec47..7a275a143c2 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -331,9 +331,17 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
switch(m_spellInfo->Id) // better way to check unknown
{
- case 35354://hand of death
+ case 35354: //Hand of Death
{
- if(unitTarget && unitTarget->HasAura(38528,0))//protection of elune
+ if(unitTarget && unitTarget->HasAura(38528,0)) //Protection of Elune
+ {
+ damage = 0;
+ }
+ break;
+ }
+ case 43648: //Electrical Storm
+ {
+ if(unitTarget && unitTarget->HasAura(44007, 0)) // Immune Aura
{
damage = 0;
}