9
3

TripleShot.lua 900 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Scout/Predator/Ranger/TripleShot.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.24 03:10:20
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. local item = GetEquippedItemBySlot(Caster, 16)
  10. if item~= nil then
  11. if GetItemType(item) == 2 then
  12. return true
  13. end
  14. end
  15. return false, 68
  16. end
  17. function cast(Caster, Target, DmgType, MinVal, MaxVal, DmgType2, MinVal2, MaxVal2, DmgType3, MinVal3, MaxVal3)
  18. -- Inflicts 32 - 54 ranged damage on target
  19. SpellDamage(Target, DmgType, MinVal, MaxVal)
  20. -- Inflicts 64 - 108 ranged damage on target
  21. if LastSpellAttackHit() then
  22. SpellDamage(Target, DmgType2, MinVal2, MaxVal2)
  23. end
  24. -- Inflicts 97 - 162 ranged damage on target
  25. if LastSpellAttackHit() then
  26. SpellDamage(Target, DmgType3, MinVal3, MaxVal3)
  27. end
  28. end