DesperateThrust.lua 658 B

123456789101112131415161718192021222324
  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. -- Info from spell_display_effects (remove from script when done)
  9. function cast(Caster, Target)
  10. -- Inflicts 257 - 428 melee damage on target
  11. SpellDamage(Target, DmgType, MinVal, MaxVal)
  12. -- Decreases Defense of target by 15.7
  13. AddSkillBonus(Target, GetSkillIDByName("Defense"), TgtAmt)
  14. -- Decreases Defense of caster by 17.4
  15. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), CastAmt)
  16. end
  17. function remove(Caster, Target)
  18. RemoveSkillBonus(Target)
  19. end