[1.2.3] Spellcraft & spellshock_on_damage
Posted: Fri Jul 18, 2014 3:56 am
Spellcraft description
Spellcraft adds spellshock_on_damage correctly, but that never gets added to the combatSpellpower() check.
damage_types.lua line 512In addition, you hone your damaging spells to spellshock their targets. This talent gives a bonus of %d to Spellpower solely for the purposes of overcoming the target's Spell Save. Spellshocked targets suffer a temporary 20%% penalty to damage resistances.
Code: Select all
if src:attr("spellshock_on_damage") and target:checkHit(src:combatSpellpower(), target:combatPhysicalResist(), 0, 95, 15) and not target:hasEffect(target.EFF_SPELLSHOCKED) then
target:crossTierEffect(target.EFF_SPELLSHOCKED, src:combatSpellpower())
end