Hostage.lua 713 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/Hostage.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.22 05:10:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- When damaged with a melee weapon this spell will cast Convulsions on target.
  10. -- Inflicts 88 - 107 mental damage on target
  11. -- Grants a total of 3 triggers of the spell.
  12. SetSpellTriggerCount(3, 1)
  13. AddProc(Target, 16, 100)
  14. end
  15. function proc(Caster, Target, ProcType, DDType, DDLow, DDHigh)
  16. ProcDamage(Caster, Target, "Convulsions", DDType, DDLow, DDHigh)
  17. RemoveTriggerFromSpell()
  18. end
  19. function remove(Caster, Target)
  20. RemoveProc(Target)
  21. end