PriestArchetype.lua 764 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Commoner/PriestArchetype.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.05.27 02:05:57
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. class = GetClass(Caster)
  10. if class == 13 then
  11. templar()
  12. else
  13. priest()
  14. end
  15. end
  16. function priest(Caster, Target)
  17. AddSpellBonus(Caster, 0, 2) --Strength
  18. AddSpellBonus(Caster, 1, 3) --Stamina
  19. AddSpellBonus(Caster, 3, 5) --Wisdom
  20. end
  21. function templar(Caster, Target)
  22. AddSpellBonus(Caster, 0, 2) --Strength
  23. AddSpellBonus(Caster, 4, 3) --Intelligence
  24. AddSpellBonus(Caster, 3, 5) --Wisdom
  25. end
  26. function remove(Caster, Target)
  27. RemoveSpellBonus(Caster)
  28. end