PrismaticChaos.lua 710 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Illusionist/PrismaticChaos.lua
  3. Script Author : theFoof
  4. Script Date : 2014.3.9
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- On a combat hit this spell will cast Prismatic Shock on target of attack.
  10. -- Inflicts 172 - 210 mental damage on target
  11. -- Grants a total of 3 triggers of the spell.
  12. SetSpellTriggerCount(3, 1)
  13. AddProc(Target, 3, 100)
  14. end
  15. function proc(Caster, Target, ProcType, DDType, DDLow, DDHigh)
  16. ProcDamage(Caster, Target, "Prismatic Shock", DDType, DDLow, DDHigh)
  17. RemoveTriggerFromSpell()
  18. end
  19. function remove(Caster, Target)
  20. RemoveProc(Target)
  21. end