aboutsummaryrefslogtreecommitdiff
path: root/src/game/StatSystem.cpp
diff options
context:
space:
mode:
authorraczman <none@none>2010-03-07 18:30:53 +0100
committerraczman <none@none>2010-03-07 18:30:53 +0100
commit07f3b914260374792fe8b40d590cb24067c87125 (patch)
tree7c1604160d6aeda8d8b10cf47effa6f075cfa50b /src/game/StatSystem.cpp
parent9a8f10fa3067ca65c2e69ac610d8950c3b384125 (diff)
Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature() --HG-- branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r--src/game/StatSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp
index 7197779fdfd..81a8a0abc60 100644
--- a/src/game/StatSystem.cpp
+++ b/src/game/StatSystem.cpp
@@ -954,7 +954,7 @@ bool Guardian::UpdateStats(Stats stat)
else
{
mod = 0.3f;
- if (((Creature*)this)->isPet())
+ if (this->ToCreature()->isPet())
{
PetSpellMap::const_iterator itr = (((Pet*)this)->m_spells.find(62758)); // Wild Hunt rank 1
if (itr == ((Pet*)this)->m_spells.end())
@@ -1120,7 +1120,7 @@ void Guardian::UpdateAttackPowerAndDamage(bool ranged)
if(isHunterPet()) //hunter pets benefit from owner's attack power
{
float mod = 1.0f; //Hunter contribution modifier
- if (((Creature*)this)->isPet())
+ if (this->ToCreature()->isPet())
{
PetSpellMap::const_iterator itr = ((Pet*)this)->m_spells.find(62758); //Wild Hunt rank 1
if (itr == ((Pet*)this)->m_spells.end())