Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- special_on_hit = {desc="9% chance to stun or confuse the target", fct=function(combat, who, target)
- if not rng.percent(9) then return end
- local eff = rng.table{"stun", "confusion"}
- if not target:canBe(eff) then return end
- if not target:checkHit(who:combatAttack(combat), target:combatPhysicalResist(), 15) then return end
- if eff == "stun" then target:setEffect(target.EFF_STUNNED, 3, {})
- elseif eff == "confusion" then target:setEffect(target.EFF_CONFUSED, 3, {power=75})
- end
- end},
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement