diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-05-25 15:55:14 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-05-25 15:55:14 +0200 |
| commit | 64adce7b8b62d648a89e7319036d1474780f3533 (patch) | |
| tree | da2c732d0afe7b0d168a5f09d0b11671ef199c4d /src/server/scripts/World | |
| parent | 0ea721e25af10e19044e7feefad02d6be124d1b7 (diff) | |
Scripts: Removed CAST_SUM define
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/npcs_special.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index cdc91f010f2..c34d20a29b1 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -1689,7 +1689,7 @@ public: // Start attacking attacker of owner on first ai update after spawn - move in line of sight may choose better target if (!me->getVictim() && me->isSummon()) - if (Unit * Owner = CAST_SUM(me)->GetSummoner()) + if (Unit * Owner = me->ToTempSummon()->GetSummoner()) if (Owner->getAttackerForHelper()) AttackStart(Owner->getAttackerForHelper()); } @@ -2103,7 +2103,7 @@ public: void DamageTaken(Unit* /*pKiller*/, uint32 &damage) { if (me->isSummon()) - if (Unit* pOwner = CAST_SUM(me)->GetSummoner()) + if (Unit* pOwner = me->ToTempSummon()->GetSummoner()) { if (pOwner->HasAura(GLYPH_OF_SHADOWFIEND)) if (damage >= me->GetHealth()) @@ -2152,7 +2152,7 @@ public: { if (pCreature->isSummon()) { - if (pPlayer == CAST_SUM(pCreature)->GetSummoner()) + if (pPlayer == pCreature->ToTempSummon()->GetSummoner()) { pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ENGINEERING1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ENGINEERING2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2); |
