Exiles Reach: trample mows the undead down (kill + despawn)
Build (Windows x64) / build (push) Canceled after 0s
Build (Windows x64) / linux-build (push) Canceled after 0s

The trample only dealt 120 damage, leaving healthier zombies/ogres alive
and visible. Kill and despawn each hostile target so the trampled army
actually disappears.
This commit is contained in:
devbox
2026-08-23 22:27:40 +10:00
parent 07e78803e2
commit 1b15337809
@@ -1024,7 +1024,6 @@ public:
source = boar; source = boar;
float radius = GetEffectInfo().CalcRadius(source).Max; float radius = GetEffectInfo().CalcRadius(source).Max;
int32 damage = GetEffectValue();
std::list<Creature*> targets; std::list<Creature*> targets;
Trinity::AnyUnitInObjectRangeCheck u_check(source, radius); Trinity::AnyUnitInObjectRangeCheck u_check(source, radius);
@@ -1035,7 +1034,11 @@ public:
{ {
if (!source->IsValidAttackTarget(target)) if (!source->IsValidAttackTarget(target))
continue; continue;
Unit::DealDamage(source, target, uint32(damage), nullptr, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL); // Mow the undead down: kill and despawn them so the trampled
// army actually disappears (damage alone left the healthier
// mobs alive and visible).
Unit::Kill(source, target);
target->DespawnOrUnsummon();
} }
} }