diff options
author | megamage <none@none> | 2009-05-28 18:43:57 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-28 18:43:57 -0500 |
commit | 1288761fb704be6d3c24e8480a809f66200ddf04 (patch) | |
tree | 22c38f099195d31b39989a5e86e180cf233961bf /src/game/CreatureEventAI.cpp | |
parent | 451471d438e234698a91f15d63b17df3ec3327f4 (diff) |
[7905] Implement ACTION_T_SET_SHEATH for creature event ai make possibility set ranged fire state. Author: VladimirMangos
Also related cleanup code in field cases and player Player::SetSheath.
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r-- | src/game/CreatureEventAI.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index c2ae915c9a4..267ceb5f7de 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -795,6 +795,12 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32 } break; } + + case ACTION_T_SET_SHEATH: + { + m_creature->SetSheath(SheathState(action.set_sheath.sheath)); + break; + } } } |