[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:
KingPin
2008-10-19 16:52:50 -05:00
parent 76adf24586
commit 0d8d686d81
4 changed files with 34 additions and 1 deletions
+16
View File
@@ -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);
}