diff options
author | megamage <none@none> | 2009-04-06 22:08:12 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-06 22:08:12 -0500 |
commit | 57674b1473d633f048c058fa23f288f5f97ba0c5 (patch) | |
tree | a096852038411b9b6148d5f02e50020a5d9a3d2d /src | |
parent | 8c97e8b78718ba4fa5573fa07af496a388299227 (diff) |
*Fix the bug that revive pet make pet action bar disappear.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 54bee661408..cb4214dc11f 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5818,15 +5818,15 @@ void Spell::EffectSummonDeadPet(uint32 /*i*/) return; if(damage < 0) return; + pet->SetUInt32Value(UNIT_DYNAMIC_FLAGS, 0); pet->RemoveFlag (UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE); pet->setDeathState( ALIVE ); pet->clearUnitState(UNIT_STAT_ALL_STATE); pet->SetHealth( uint32(pet->GetMaxHealth()*(float(damage)/100))); - pet->AIM_Initialize(); - - _player->PetSpellInitialize(); + //pet->AIM_Initialize(); + //_player->PetSpellInitialize(); pet->SavePetToDB(PET_SAVE_AS_CURRENT); } |