ArcaneEnlightenment.lua 1020 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Commoner/ArcaneEnlightenment.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2-26-2023
  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. MaxPow = GetMaxPower(Caster)
  16. PowHeal = math.floor(MaxPow * 0.2)
  17. SpellHeal("Power", PowHeal, PowHeal, Caster)
  18. AddProc(Caster, 15, 50)
  19. SetSpellTriggerCount(Triggers, 1)
  20. end
  21. function proc(Caster, Target, Type, Power, Triggers)
  22. CastSpell(Caster, 2550391, 1)
  23. RemoveTriggerFromSpell()
  24. end
  25. function remove(Caster, Target)
  26. RemoveProc(Target)
  27. end