*Remove Not attackable flags on escortAI start

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-02-13 23:50:04 +01:00
parent 5f6705535b
commit ffb5fb7445
2 changed files with 11 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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;
}