ArrowRip.lua 636 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/ArrowRip.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.04 10:11:47
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Inflicts 212 - 353 melee damage on target
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. -- Returns the last arrow used to the ranger.
  12. if LastSpellAttackHit() then
  13. local item = GetEquippedItemBySlot(Caster, 17)
  14. if item ~= nil then
  15. local item_id = GetItemID(item)
  16. SummonItem(Caster, item_id, 1)
  17. end
  18. end
  19. end