Exiles Reach: trample mows the undead down (kill + despawn)
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:
@@ -1024,7 +1024,6 @@ public:
|
||||
source = boar;
|
||||
|
||||
float radius = GetEffectInfo().CalcRadius(source).Max;
|
||||
int32 damage = GetEffectValue();
|
||||
|
||||
std::list<Creature*> targets;
|
||||
Trinity::AnyUnitInObjectRangeCheck u_check(source, radius);
|
||||
@@ -1035,7 +1034,11 @@ public:
|
||||
{
|
||||
if (!source->IsValidAttackTarget(target))
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user