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/Creature.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/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index aba48f985b7..6eecc3213fa 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -340,7 +340,7 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data ) m_regenHealth = GetCreatureInfo()->RegenHealth; // creatures always have melee weapon ready if any - SetByteValue(UNIT_FIELD_BYTES_2, 0, SHEATH_STATE_MELEE ); + SetSheath(SHEATH_STATE_MELEE); SelectLevel(GetCreatureInfo()); if (team == HORDE) |