9
3

PoisonousPinch.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Spells/Traditions/PoisonousPinch.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.10 06:09:50
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Crush, Poison)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 7
  11. Mastery = SpellLevel + 50
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. TotalDmg = Crush + LvlBonus
  17. SpellDamage(Target, 1, TotalDmg, TotalDmg)
  18. if IsPlayer(Target) and GetClientVersion(Target) <= 526 then
  19. SpawnSet(Target,"visual_state",2774)
  20. else
  21. SpawnSet(Target,"visual_state",2774)
  22. end
  23. end
  24. function tick(Caster, Target, Crush, Poison)
  25. Level = GetLevel(Caster)
  26. SpellLevel = 7
  27. Mastery = SpellLevel + 50
  28. if Level < Mastery then
  29. LvlBonus = Level - SpellLevel
  30. else LvlBonus = Mastery - SpellLevel
  31. end
  32. DoTDmg = Poison + LvlBonus
  33. SpellDamage(Target, 9, DoTDmg, DotDmg)
  34. if IsPlayer(Target) and GetClientVersion(Target) <= 526 then
  35. SpawnSet(Target,"visual_state",2774)
  36. else
  37. SpawnSet(Target,"visual_state",2774)
  38. end
  39. end
  40. function remove(Caster, Target)
  41. SpawnSet(Target,"visual_state",35542)
  42. end