Page 1 of 1

Flameshock alteration

Posted: Mon Jun 18, 2012 3:58 am
by lukep
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:

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
To:

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
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).

Re: Flameshock alteration

Posted: Mon Jun 18, 2012 8:05 am
by darkgod
Yeah but I meant it to not burn if resisted :)