9
3

Phantasm.lua 851 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Phantasm.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.03.14 02:03:22
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Hate)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 13
  11. Mastery = SpellLevel + 10
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. HateMod = LvlBonus * 3
  17. Detaunt = Hate - HateMod
  18. AddHate(Caster, Target, Detaunt, 1)
  19. if IsEpic == false then
  20. AddControlEffect(Target, 6)
  21. AddProc(Target, 15, 30.0)
  22. end
  23. end
  24. function proc(Caster, Target, Type)
  25. if Type == 15 then
  26. CancelSpell()
  27. end
  28. end
  29. function remove(Caster, Target)
  30. RemoveControlEffect(Target, 6)
  31. end