[11408] Do not ignore SHEATH_STATE_UNARMED when 0 defined in database *_addon

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-04-30 13:59:50 +02:00
parent 4bdc02509a
commit d68e8368f7
2 changed files with 2 additions and 3 deletions

View file

@ -1956,8 +1956,7 @@ bool Creature::LoadCreatureAddon(bool reload)
// 1 UnitPVPStateFlags Set at Creature::UpdateEntry (SetPvp())
// 2 UnitRename Pet only, so always 0 for default creature
// 3 ShapeshiftForm Must be determined/set by shapeshift spell/aura
if (cainfo->sheath_state != 0)
SetByteValue(UNIT_FIELD_BYTES_2, 0, cainfo->sheath_state);
SetByteValue(UNIT_FIELD_BYTES_2, 0, cainfo->sheath_state);
if (cainfo->pvp_state != 0)
SetByteValue(UNIT_FIELD_BYTES_2, 1, cainfo->pvp_state);