Code: Select all
getDamage = function(self, t) return math.max(100 + self:combatSpellpower() * 5, 100 + self:combatMindpower() * 5) end
Code: Select all
if target:canBe("stun") then
target:setEffect(target.EFF_STUNNED, 3, {apply_power=src:combatSpellpower()})
else
game.logSeen(target, "%s resists the stun!", target.name:capitalize())
end
end