Flameshock alteration
Posted: Mon Jun 18, 2012 3:58 am
Currently, the spell flameshock checks stun immunity to see if it applies the burning shock effect that stuns and burns the target. One quirk about this is that having stun immunity makes the target immune to the burning damage as well. Changing one part of flameshock damage from:
To: would change this behaviour to make it so that stun immune targets are still burned, but not stunned. (I think. I haven't tested the code).
Code: Select all
if target then
-- Set on fire!
if target:canBe("stun") then
target:setEffect(target.EFF_BURNING_SHOCK, dam.dur, {src=src, power=dam.dam / dam.dur, apply_power=src:combatSpellpower()})
else
game.logSeen(target, "%s resists the searing flame!", target.name:capitalize())
end
Code: Select all
if target then
-- Set on fire!
if target:canBe("stun") then
target:setEffect(target.EFF_BURNING_SHOCK, dam.dur, {src=src, power=dam.dam / dam.dur, apply_power=src:combatSpellpower()})
else
target:setEffect(target.EFF_BURNING, dam.dur, {src=src, power=dam.dam / dam.dur, apply_power=src:combatSpellpower()})
end