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:
hondacrx
2019-08-17 10:47:55 -04:00
parent bdfea4ecad
commit d3cbe70f56
10 changed files with 155 additions and 158 deletions
+1 -1
View File
@@ -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))
+1 -4
View File
@@ -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