ArcaneEnlightenment.lua 940 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Commoner/ArcaneEnlightenment.lua
  3. Script Author : neatz09
  4. Script Date : 2020.03.30 08:03:47
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Increases power of caster by 20.0%
  10. -- When Damage is received this spell has a 50% chance to cast Enlightenment on caster. Lasts for 1 minute 30 seconds.
  11. -- Increases power of caster by 40.0%
  12. -- This effect cannot be critically apllied.
  13. -- Grants 8 triggers of the spell.
  14. function cast(Caster, Target, Power, Triggers)
  15. AddSpellBonus(Target, 620, Power)
  16. AddProc(Caster, 15, 50)
  17. SetSpellTriggerCount(Triggers, 1)
  18. end
  19. function proc(Caster, Target, Type, Power, Triggers)
  20. CastSpell(Caster, 22, 1)
  21. RemoveTriggerFromSpell()
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Target)
  25. RemoveProc(Target)
  26. end