[1.0.4] Meteoric Crash uses inconsistent power calcs
Posted: Mon Jun 10, 2013 11:45 am
The damage uses max of spell or mindpower:
but the stun uses only spell power. It needs a similar formula, to make it useful for mindpower chars:
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