DesperateThrust.lua 657 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/DesperateThrust.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.15 09:10:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, TgtAmt, CastAmt)
  9. -- Inflicts 257 - 428 melee damage on target
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. -- Decreases Defense of target by 15.7
  12. AddSkillBonus(Target, GetSkillIDByName("Defense"), TgtAmt)
  13. -- Decreases Defense of caster by 17.4
  14. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), CastAmt)
  15. end
  16. function remove(Caster, Target)
  17. RemoveSkillBonus(Target)
  18. end