[svn] * Raise modify scale limit from 3 to 10 for players
* Implement immunity totems from periodic damage spell effects. Source: Mangos * Implemented second choice aggro targets for creatures. Source: Mangos --HG-- branch : trunk
This commit is contained in:
@@ -161,3 +161,19 @@ void Totem::SetTypeBySummonSpell(SpellEntry const * spellProto)
|
||||
if(spellProto->SpellIconID==2056)
|
||||
m_type = TOTEM_STATUE; //Jewelery statue
|
||||
}
|
||||
|
||||
bool Totem::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges)
|
||||
{
|
||||
for (int i=0;i<3;i++)
|
||||
{
|
||||
switch(spellInfo->EffectApplyAuraName[i])
|
||||
{
|
||||
case SPELL_AURA_PERIODIC_DAMAGE:
|
||||
case SPELL_AURA_PERIODIC_LEECH:
|
||||
return true;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return Creature::IsImmunedToSpell(spellInfo, useCharges);
|
||||
}
|
||||
Reference in New Issue
Block a user