Skip to content
Snippets Groups Projects
Commit cb16156a authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'CausticWeaponFix' into 'master'

Caustic weapon fix

Fixes crash when corroding armor with the caustic weapon ego.
parents 63e29a71 bdb51722
No related branches found
No related tags found
No related merge requests found
......@@ -2124,7 +2124,7 @@ newDamageType{
local target = game.level.map(x, y, Map.ACTOR)
if target then
if rng.percent(dam) then
game:delayedLogDamage(src, target, 0, ("%s<30%% armour corrode>#LAST#"):format(DamageType:get(type).text_color or "#aaaaaa#", dam), false)
game:delayedLogDamage(src, target, 0, ("%s<30%%%% armour corrode>#LAST#"):format(DamageType:get(type).text_color or "#aaaaaa#", dam), false)
local check = math.max(src:combatAttack(), src:combatSpellpower(), src:combatMindpower())
--local param = { atk=dam/3, armor=dam/3, defense=dam/3, src=src, apply_power = check, no_ct_effect=true }
target:setEffect(target.EFF_ITEM_ACID_CORRODE, 5, {pct = 0.3, no_ct_effect = true, apply_power = check})
......
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