PowerStrike.lua 583 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/PowerStrike.lua
  3. Script Author : Dello
  4. Script Date : 2014.07.10 06:07:45
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DefSkills)
  9. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkills)
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. end
  16. function remove(Caster, Target)
  17. RemoveSkillBonus(Target)
  18. end