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:
Ramusik
2011-05-31 01:18:50 +02:00
committed by click
parent 600cc16c94
commit d1307ee47b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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));