Skip to content
Snippets Groups Projects
Commit 8d7da9d9 authored by Chris Davidson's avatar Chris Davidson
Browse files

Allow Elemental weapon ego to proc on kills

parent 2c8b7f21
No related branches found
No related tags found
No related merge requests found
......@@ -314,6 +314,7 @@ newEntity{
{engine.DamageType.ACID, "acid", "acid"},
},
special_on_hit = {
on_kill = 1,
desc=function(self, who, special)
local dam = special.explosion(self.combat, who)
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{
{engine.DamageType.ACID, "acid", "acid"},
},
special_on_hit = {
on_kill = 1,
desc=function(self, who, special)
local dam = special.explosion(who)
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>" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment