Skip to content
Snippets Groups Projects
Commit 8868e8c1 authored by Sheila's avatar Sheila
Browse files

New damtype for Frost Treads' effect

parent 61c47516
No related branches found
No related tags found
1 merge request!447Artifact Cheese :cheese:
......@@ -4055,4 +4055,19 @@ newDamageType{
target:setEffect(target.EFF_SHADOW_SMOKE, 5, {sight=dam, apply_power=src:combatAttack()})
end
end,
}
\ No newline at end of file
}
newDamageType{
name = "frozen earth", type = "ITEM_FROST_TREADS",
projector = function(src, x, y, type, dam, state)
state = initState(state)
useImplicitCrit(src, state)
local target = game.level.map(x, y, Map.ACTOR)
if target and src:reactionToward(target) < 0 then
target:setEffect(target.EFF_SLIPPERY_GROUND, 2, { fail=20}, true)
end
if target and target == src then
target:setEffect(target.EFF_FROZEN_GROUND, 2, { }, true)
end
end,
}
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