diff options
author | megamage <none@none> | 2009-02-26 20:43:35 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-26 20:43:35 -0600 |
commit | d3a69006675bb5317fab76584d5990b36c2fd5a5 (patch) | |
tree | 8a0f3e0033eb694d5aba06db5c1ecc02b690099e /src/game/Creature.cpp | |
parent | 39c513776c5dde8b5732df5ba2467d9e9e3e84fd (diff) | |
parent | bc54e91afff9b9a53902439441fa2e63e3da1a9a (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 5c6c7e0566b..bc8105abcc1 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1657,7 +1657,8 @@ void Creature::setDeathState(DeathState s) { SetUInt64Value (UNIT_FIELD_TARGET,0); // remove target selection in any cases (can be set at aura remove in Unit::setDeathState) SetUInt32Value(UNIT_NPC_FLAGS, 0); - setActive(false); + //if(!isPet()) + setActive(false); if(!isPet() && GetCreatureInfo()->SkinLootId) if ( LootTemplates_Skinning.HaveLootFor(GetCreatureInfo()->SkinLootId) ) @@ -1670,8 +1671,8 @@ void Creature::setDeathState(DeathState s) } if(s == JUST_ALIVED) { - if(isPet()) - setActive(true); + //if(isPet()) + // setActive(true); SetHealth(GetMaxHealth()); SetLootRecipient(NULL); Unit::setDeathState(ALIVE); |