Scripts: Removed CAST_SUM define

This commit is contained in:
Shauren
2011-05-25 15:55:14 +02:00
parent 0ea721e25a
commit 64adce7b8b
13 changed files with 96 additions and 91 deletions
@@ -511,7 +511,7 @@ public:
bool liveSide;
bool gateClose;
bool isOnSameSide(const Unit *pWho)
bool isOnSameSide(const Unit *pWho) const
{
return (liveSide == IN_LIVE_SIDE(pWho));
}
@@ -530,10 +530,8 @@ public:
void JustDied(Unit * /*killer*/)
{
if (me->isSummon())
{
if (Unit *owner = CAST_SUM(me)->GetSummoner())
if (Unit* owner = me->ToTempSummon()->GetSummoner())
CombatAI::JustDied(owner);
}
}
void EnterEvadeMode()