Core/SAI: Implemented Gameobject action allowing to send SMSG_GAMEOBJECT_CUSTOM_ANIM with parameter set in param1

This commit is contained in:
Shauren
2011-03-02 16:50:09 +01:00
parent 2b9346e5a0
commit 6c020c72cc
7 changed files with 28 additions and 9 deletions

View File

@@ -1453,6 +1453,18 @@ void SmartScript::ProcessAction(SmartScriptHolder &e, Unit* unit, uint32 var0, u
(*itr)->ToUnit()->InterruptNonMeleeSpells(e.action.interruptSpellCasting.withDelayed,e.action.interruptSpellCasting.spell_id,e.action.interruptSpellCasting.withInstant);
}
break;
}
case SMART_ACTION_SEND_GO_CUSTOM_ANIM:
{
ObjectList* targets = GetTargets(e, unit);
if (!targets)
return;
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); itr++)
if (IsGameObject((*itr)))
(*itr)->ToGameObject()->SendCustomAnim(e.action.sendGoCustomAnim.anim);
break;
}
default: