Core: use UNIT_DYNFLAG_NONE instead of 0-value. Also fixed typo in reset UNIT_DYNAMIC_FLAGS at player death
Signed-off-by: click <clickvd@gonnamakeyou.com>
This commit is contained in:
1 parent
600cc16c94
commit
d1307ee47b
3 files changed
+5
-5
No files matched your search
@@ -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