diff options
author | Rat <none@none> | 2010-12-09 22:21:11 +0100 |
---|---|---|
committer | Rat <none@none> | 2010-12-09 22:21:11 +0100 |
commit | b5e24cbb9cb57754dcde6a10bd4b4b491265b80e (patch) | |
tree | eb494cfb526af55a33398bf49898e24406cc0280 | |
parent | 855b8bcd205ce6b03c8ad59703f6dd27944e1ae3 (diff) |
Core/SmartAI: ACTION_CALL_CASTEDCREATUREORGO can now be used with GameObjects too
--HG--
branch : trunk
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 087aee750ba..f75bc60cbaf 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -460,13 +460,13 @@ void SmartScript::ProcessAction(SmartScriptHolder &e, Unit* unit, uint32 var0, u } case SMART_ACTION_CALL_CASTEDCREATUREORGO: { - if (!me) return; + if (!GetBaseObject()) return; ObjectList* targets = GetTargets(e, unit); if (!targets) return; for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); itr++) { if (IsPlayer((*itr))) - (*itr)->ToPlayer()->CastedCreatureOrGO(e.action.castedCreatureOrGO.creature, me->GetGUID(), e.action.castedCreatureOrGO.spell); + (*itr)->ToPlayer()->CastedCreatureOrGO(e.action.castedCreatureOrGO.creature, GetBaseObject()->GetGUID(), e.action.castedCreatureOrGO.spell); } break; } |