mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
*Remove Not attackable flags on escortAI start
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user