Commit 8d7da9d9d3f1073fa3d6f6196479ffcd9f9f0c1c

Authored by Chris Davidson
1 parent 2c8b7f21

Allow Elemental weapon ego to proc on kills

... ... @@ -314,6 +314,7 @@ newEntity{
314 314 {engine.DamageType.ACID, "acid", "acid"},
315 315 },
316 316 special_on_hit = {
  317 + on_kill = 1,
317 318 desc=function(self, who, special)
318 319 local dam = special.explosion(self.combat, who)
319 320 return ("Create an explosion dealing #VIOLET#%d#LAST# %s damage (1/turn)"):format(dam, self.combat.elemental_element and self.combat.elemental_element[3] or "<random on generation>" )
... ...
... ... @@ -403,6 +403,7 @@ newEntity{
403 403 {engine.DamageType.ACID, "acid", "acid"},
404 404 },
405 405 special_on_hit = {
  406 + on_kill = 1,
406 407 desc=function(self, who, special)
407 408 local dam = special.explosion(who)
408 409 return ("Create an explosion dealing #VIOLET#%d#LAST# %s damage (1/turn)"):format(dam, self.combat.elemental_element and self.combat.elemental_element[3] or "<random on generation>" )
... ...