ArcaneEnlightenment.lua 986 B

1234567891011121314151617181920212223242526272829303132
  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. Say(Caster, "this casts a test spell")
  21. CastSpell(Caster, 22, 1)
  22. RemoveTriggerFromSpell()
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Target)
  26. RemoveProc(Target)
  27. end