diff --git a/binaries/data/mods/public/simulation/components/DeathDamage.js b/binaries/data/mods/public/simulation/components/DeathDamage.js
index dad477ed43..5f2ec3f5c1 100644
--- a/binaries/data/mods/public/simulation/components/DeathDamage.js
+++ b/binaries/data/mods/public/simulation/components/DeathDamage.js
@@ -1,23 +1,5 @@
function DeathDamage() {}
-DeathDamage.prototype.bonusesSchema =
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "" +
- "";
-
DeathDamage.prototype.Schema =
"When a unit or building is destroyed, it inflicts damage to nearby units." +
"" +
@@ -30,16 +12,17 @@ DeathDamage.prototype.Schema =
"50.0" +
"" +
"" +
- "" +
- "" +
- "" +
+ "" +
+ "" +
+ "" +
Attacking.BuildAttackEffectsSchema();
DeathDamage.prototype.Init = function()
{
};
-DeathDamage.prototype.Serialize = null; // we have no dynamic state to save
+// We have no dynamic state to save.
+DeathDamage.prototype.Serialize = null;
DeathDamage.prototype.GetDeathDamageEffects = function()
{
@@ -58,15 +41,13 @@ DeathDamage.prototype.CauseDeathDamage = function()
if (owner == INVALID_PLAYER)
warn("Unit causing death damage does not have any owner.");
- let radius = ApplyValueModificationsToEntity("DeathDamage/Range", +this.template.Range, this.entity);
-
Attacking.CauseDamageOverArea({
"type": "Death",
"attackData": this.GetDeathDamageEffects(),
"attacker": this.entity,
"attackerOwner": owner,
"origin": pos,
- "radius": radius,
+ "radius": ApplyValueModificationsToEntity("DeathDamage/Range", +this.template.Range, this.entity),
"shape": this.template.Shape,
"friendlyFire": this.template.FriendlyFire == "true",
});