This is literally the same thing as your other thread, but with different words. xP
TFS 1.3 Hello guys, I would like a spell that when the player cast, he receives 50% less damage to fire atacks for 5 seconds.
otland.net
Fire Resistance = negating a # or % of fire damage
-> 50% less damage to fire attacks
-> caster fire resistance by 5%
Both of these things are considered fire resistance, but just worded differently.
--
So just use same spell as before, but modify for 10 seconds.
And use same onHealthChange script as before but change
from
LUA:
primaryDamage = primaryDamage / 2
secondaryDamage = secondaryDamage / 2
to
LUA:
primaryDamage = primaryDamage * 0.95
secondaryDamage = secondaryDamage * 0.95