diff options
author | Rat <none@none> | 2010-04-14 23:07:41 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-04-14 23:07:41 +0200 |
commit | 6bcb297de4d5231373a3e2bf2b40e527b91cdf46 (patch) | |
tree | a5379b14ceb2ac9e7273143b334bfc693e2ef042 /src/scripts/world/guards.cpp | |
parent | cc262e1cde544eb7cf643df79fa00c9f34af4785 (diff) |
*code cleanup
*totally destroyed m_creature, use "me" for future coding
--HG--
branch : trunk
Diffstat (limited to 'src/scripts/world/guards.cpp')
-rw-r--r-- | src/scripts/world/guards.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts/world/guards.cpp b/src/scripts/world/guards.cpp index 3d6edd9c1c3..95aa4a381ba 100644 --- a/src/scripts/world/guards.cpp +++ b/src/scripts/world/guards.cpp @@ -2552,7 +2552,7 @@ struct guard_shattrath_aldorAI : public guardAI { if (Exile_Timer <= diff) { - if (Unit* temp = Unit::GetUnit(*m_creature,PlayerGUID)) + if (Unit* temp = Unit::GetUnit(*me,PlayerGUID)) { temp->CastSpell(temp,SPELL_EXILE,true); temp->CastSpell(temp,SPELL_BANISH_TELEPORT,true); @@ -2564,7 +2564,7 @@ struct guard_shattrath_aldorAI : public guardAI } else if (Banish_Timer <= diff) { - Unit* temp = m_creature->getVictim(); + Unit* temp = me->getVictim(); if (temp && temp->GetTypeId() == TYPEID_PLAYER) { DoCast(temp, SPELL_BANISHED_SHATTRATH_A); @@ -2748,7 +2748,7 @@ struct guard_shattrath_scryerAI : public guardAI { if (Exile_Timer <= diff) { - if (Unit* temp = Unit::GetUnit(*m_creature,PlayerGUID)) + if (Unit* temp = Unit::GetUnit(*me,PlayerGUID)) { temp->CastSpell(temp,SPELL_EXILE,true); temp->CastSpell(temp,SPELL_BANISH_TELEPORT,true); @@ -2760,7 +2760,7 @@ struct guard_shattrath_scryerAI : public guardAI } else if (Banish_Timer <= diff) { - Unit* temp = m_creature->getVictim(); + Unit* temp = me->getVictim(); if (temp && temp->GetTypeId() == TYPEID_PLAYER) { DoCast(temp, SPELL_BANISHED_SHATTRATH_S); |