Core/Creatures: Various fixes for creatures, regarding combat conditions, despawning, and few others
Port From (https://github.com/TrinityCore/TrinityCore/commit/fe63cd3dbb66f4fda743858db4284a24bc2bd400)
This commit is contained in:
@@ -2587,7 +2587,7 @@ namespace Game.Spells
|
||||
{
|
||||
target.Kill(caster);
|
||||
if (caster.IsTypeId(TypeId.Unit))
|
||||
caster.ToCreature().RemoveCorpse();
|
||||
caster.ToCreature().DespawnOrUnsummon();
|
||||
}
|
||||
|
||||
if (!mode.HasAnyFlag(AuraEffectHandleModes.ChangeAmount))
|
||||
|
||||
@@ -2956,10 +2956,7 @@ namespace Game.Spells
|
||||
caster.RewardPlayerAndGroupAtEvent(18388, unitTarget);
|
||||
Creature target = unitTarget.ToCreature();
|
||||
if (target != null)
|
||||
{
|
||||
target.setDeathState(DeathState.Corpse);
|
||||
target.RemoveCorpse();
|
||||
}
|
||||
target.DespawnOrUnsummon();
|
||||
}
|
||||
break;
|
||||
// Mug Transformation
|
||||
|
||||
Reference in New Issue
Block a user