*code cleanup

*totally destroyed m_creature, use "me" for future coding

--HG--
branch : trunk
This commit is contained in:
Rat committed 2010-04-14 23:07:41 +02:00
1 parent cc262e1cde
commit 6bcb297de4
403 files changed
+9851 -9852

No files matched your search

+4 -4
View File
@@ -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);