StreetSmarts.lua 755 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Rogue/StreetSmarts.lua
  3. Script Author : neatz09
  4. Script Date : 2019.12.14 03:12:20
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases AGI of caster by 10.0
  9. -- Increases STR of caster by 15.0
  10. function cast(Caster, Target, Agi, Str)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 13
  13. Mastery = SpellLevel + 6
  14. if Level < Mastery then
  15. LvlBonus = Level - SpellLevel
  16. else LvlBonus = Mastery - SpellLevel
  17. end
  18. StatMod = LvlBonus * 0.5
  19. AgiMod = Agi + StatMod
  20. StrMod = Str + StatMod
  21. AddSpellBonus(Caster, 2, AgiMod)
  22. AddSpellBonus(Caster, 0, StrMod)
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Target)
  26. end