9
3

JaelsDreadfulDeprivation.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Spells/Scout/Bard/Dirge/JaelsDreadfulDeprivation.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.12 10:10:32
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 24 - 41 disease damage on target
  9. -- Inflicts 24 - 41 disease damage on target
  10. -- Roots target
  11. -- If Target is not Epic
  12. -- If weapon equipped in Ranged
  13. -- Resistibility increases against targets higher than level 29.
  14. function precast(Caster, Target)
  15. local item = GetEquippedItemBySlot(Caster, 16)
  16. if item~= nil then
  17. if GetItemType(item) == 2 then
  18. return true
  19. end
  20. end
  21. return false, 68
  22. end
  23. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  24. SpellDamage(Target, DmgType, MinVal, MaxVal)
  25. if LastSpellAttackHit() then
  26. SpellDamage(Target, DmgType, MinVal, MaxVal)
  27. end
  28. if LastSpellAttackHit() and not IsEpic(Target) then
  29. AddControlEffect(Target, 5)
  30. end
  31. end
  32. function remove(Caster, Target)
  33. RemoveControlEffect(Target, 5)
  34. end