diff options
author | megamage <none@none> | 2009-07-30 10:26:15 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-30 10:26:15 +0800 |
commit | 7bd47f88276551ffd51aef1659d4876cf18434ae (patch) | |
tree | 6e470468fa23d68c77bc75190a57822b1547f2fd /src/game/Totem.cpp | |
parent | 4c9aa14e57ad6d2b979e1444aaea12ea287b6c04 (diff) |
[8225] Some fixes from 320 branch. Author: tomrus88
--HG--
branch : trunk
Diffstat (limited to 'src/game/Totem.cpp')
-rw-r--r-- | src/game/Totem.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp index b11146367b2..d35ba9e30b9 100644 --- a/src/game/Totem.cpp +++ b/src/game/Totem.cpp @@ -57,9 +57,9 @@ void Totem::InitStats(uint32 duration) Minion::InitStats(duration); CreatureInfo const *cinfo = GetCreatureInfo(); - if (m_owner->GetTypeId()==TYPEID_PLAYER && cinfo) + if(m_owner->GetTypeId() == TYPEID_PLAYER && cinfo) { - uint32 display_id = objmgr.ChooseDisplayId(((Player*)m_owner)->GetTeam(),cinfo); + uint32 display_id = objmgr.ChooseDisplayId(((Player*)m_owner)->GetTeam(), cinfo); CreatureModelInfo const *minfo = objmgr.GetCreatureModelRandomGender(display_id); if (minfo) display_id = minfo->modelid; @@ -137,7 +137,7 @@ void Totem::UnSummon() bool Totem::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const { - // TODO: possibly all negative auras immuned? + // TODO: possibly all negative auras immune? switch(spellInfo->EffectApplyAuraName[index]) { case SPELL_AURA_PERIODIC_DAMAGE: @@ -150,4 +150,3 @@ bool Totem::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) co } return Creature::IsImmunedToSpellEffect(spellInfo, index); } - |