9
3

ApplyPoison.lua 973 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/ApplyPoison.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.07 08:11:55
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- On a melee hit this spell may cast Assassin's Hemotoxin on target of attack. Lasts for 24.0 seconds. Triggers about 3.0 times per minute.
  10. -- Inflicts 268 poison damage on target instantly and every 4 seconds
  11. -- If profession other than Predator
  12. -- If profession other than Rogue
  13. function cast(Caster, Target, Chance, DmgType, MinVal)
  14. local class = GetClass(Target)
  15. if class ~= 32 and class ~= 33 and class ~= 34 and class ~= 38 and class ~= 39 and class ~= 40 then
  16. AddProc(Target, 3, 18)
  17. end
  18. end
  19. function proc(Caster, Target, Type, Chance, DmgType, MinVal)
  20. Say(Caster, "Need Custom Spell")
  21. end
  22. function remove(Caster, Target)
  23. RemoveProc(Target)
  24. end