scope DDSTest
private struct Test extends array
private static integer PRIORITY = 10
private static string FX = "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl"
private static method onDamage takes nothing returns nothing
if GetRandomInt(0, 2) == 0 and archetype == Archetype.PHYSICAL then
set damage = damage * 1.75 // Modify damage by 1.75
call DestroyEffect(AddSpecialEffect(FX, GetUnitX(target), GetUnitY(target)))
call ArcingTextTag.create(R2S(damageOriginal) + "+" + R2S(damageModifiedAmount), target)
else
call ArcingTextTag.create(R2S(damage), target)
endif
endmethod
implement DDS
endstruct
endscope