548007ea96
Starting point..!
23 lines
No EOL
561 B
Lua
23 lines
No EOL
561 B
Lua
--[[
|
|
Script Name : Spells/Fighter/Brawler/PowerStrike.lua
|
|
Script Author : Dello
|
|
Script Date : 2014.07.10 06:07:45
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
|
|
function cast(Caster, Target, DmgType, MinVal, MaxVal, DefSkills)
|
|
|
|
AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkills)
|
|
|
|
if MaxVal ~= nil and MinVal < MaxVal then
|
|
SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
|
|
else
|
|
SpellDamage(Target, DmgType, MinVal)
|
|
end
|
|
end
|
|
|
|
function remove(Caster, Target)
|
|
RemoveSkillBonus(Target)
|
|
end |