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

@@ -114,7 +114,7 @@ public:
{
//THIS GOB IS A TRAP - What shall i do? =(
//Cast it spell? Copyed Heigan method
pFloorEruption->SendCustomAnim();
pFloorEruption->SendCustomAnim(pFloorEruption->GetGoAnimProgress());
pFloorEruption->CastSpell(NULL, Difficulty(instance->GetSpawnMode()) == RAID_DIFFICULTY_10MAN_NORMAL ? 17731 : 69294); //pFloorEruption->GetGOInfo()->trap.spellId
//Get all immediatly nearby floors

View File

@@ -335,7 +335,7 @@ public:
{
if (GameObject* pHeiganEruption = instance->GetGameObject(*itr))
{
pHeiganEruption->SendCustomAnim();
pHeiganEruption->SendCustomAnim(pHeiganEruption->GetGoAnimProgress());
pHeiganEruption->CastSpell(NULL, SPELL_ERUPTION);
}
}