Merge pull request #6030 from UberWaffe/CustomWarheads
Custom Warheads refactor
This commit is contained in:
@@ -65,9 +65,7 @@ namespace OpenRA.Mods.D2k
|
||||
if (health.HP <= damageThreshold || --damageTicks > 0)
|
||||
return;
|
||||
|
||||
foreach (var w in weapon.Warheads)
|
||||
health.InflictDamage(self, self.World.WorldActor, w.Damage, w, false);
|
||||
|
||||
weapon.Impact(self.CenterPosition, self.World.WorldActor, 1f);
|
||||
damageTicks = weapon.ROF;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user