mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10963] Rename UNIT_STAND_STATE_SUBMERGED to more generic *_CUSTOM
Visual appearance depend on model animation capability. In addition, change stand state for creature at enter combat when creature has custom stand state. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
b206e5ddd0
commit
514a66fd67
3 changed files with 6 additions and 2 deletions
|
|
@ -7719,6 +7719,10 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
|
|||
// should probably be removed for the attacked (+ it's party/group) only, not global
|
||||
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
|
||||
// client does not handle this state on it's own (reset to default at LoadCreatureAddon)
|
||||
if (getStandState() == UNIT_STAND_STATE_CUSTOM)
|
||||
SetStandState(UNIT_STAND_STATE_STAND);
|
||||
|
||||
if (((Creature*)this)->AI())
|
||||
((Creature*)this)->AI()->EnterCombat(enemy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue