mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[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:
parent
4bdc02509a
commit
d68e8368f7
2 changed files with 2 additions and 3 deletions
|
|
@ -1956,8 +1956,7 @@ bool Creature::LoadCreatureAddon(bool reload)
|
||||||
// 1 UnitPVPStateFlags Set at Creature::UpdateEntry (SetPvp())
|
// 1 UnitPVPStateFlags Set at Creature::UpdateEntry (SetPvp())
|
||||||
// 2 UnitRename Pet only, so always 0 for default creature
|
// 2 UnitRename Pet only, so always 0 for default creature
|
||||||
// 3 ShapeshiftForm Must be determined/set by shapeshift spell/aura
|
// 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)
|
if (cainfo->pvp_state != 0)
|
||||||
SetByteValue(UNIT_FIELD_BYTES_2, 1, cainfo->pvp_state);
|
SetByteValue(UNIT_FIELD_BYTES_2, 1, cainfo->pvp_state);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11407"
|
#define REVISION_NR "11408"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue