Core: use UNIT_DYNFLAG_NONE instead of 0-value. Also fixed typo in reset UNIT_DYNAMIC_FLAGS at player death
Signed-off-by: click <[email protected]>
This commit is contained in:
@@ -6187,8 +6187,8 @@ void Spell::EffectSummonDeadPet(SpellEffIndex /*effIndex*/)
|
||||
_player->GetPosition(x, y, z);
|
||||
_player->GetMap()->CreatureRelocation(pet, x, y, z, _player->GetOrientation());
|
||||
|
||||
pet->SetUInt32Value(UNIT_DYNAMIC_FLAGS, 0);
|
||||
pet->RemoveFlag (UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
|
||||
pet->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_NONE);
|
||||
pet->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
|
||||
pet->setDeathState(ALIVE);
|
||||
pet->ClearUnitState(uint32(UNIT_STAT_ALL_STATE));
|
||||
pet->SetHealth(pet->CountPctFromMaxHealth(damage));
|
||||
|
||||
Reference in New Issue
Block a user