From c4a8da0e32d43099c3bc3797aecc94070ab6a0d3 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 18 Jun 2009 17:05:01 -0500 Subject: [8040] Implement Creature::ForcedDespawn and ACTION_T_FORCE_DESPAWN for EventAI. Author: NoFantasy --HG-- branch : trunk --- src/game/CreatureEventAI.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/CreatureEventAI.cpp') diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index 3d83b2c4fb4..8aa4cf38b49 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -791,6 +791,11 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32 m_creature->SetSheath(SheathState(action.set_sheath.sheath)); break; } + case ACTION_T_FORCE_DESPAWN: + { + m_creature->ForcedDespawn(); + break; + } } } -- cgit v1.2.3