9
3

SpuriousBravado.lua 844 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/SpuriousBravado.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.04 10:11:56
  5. Script Purpose :
  6. :
  7. --]]
  8. -- On a melee hit this spell may cast Bravado on caster. Lasts for 20.0 seconds. Triggers about 5.0 times per minute.
  9. -- Increases Hate Gain of caster by 5.0%
  10. -- Increases Haste of caster by 28.5
  11. -- Dispelled when target takes damage
  12. function cast(Caster, Target, Hate, Haste)
  13. AddProc(Target, 15, 100)
  14. end
  15. function proc(Caster, Target, Type, Hate, Haste)
  16. if Type == 15 then
  17. Spell = GetSpell(5434, GetSpellTier())
  18. SetSpellDataIndex(Spell, 0, Hate)
  19. SetSpellDataIndex(Spell, 1, Haste)
  20. CastCustomSpell(Spell, Caster, Target)
  21. end
  22. end
  23. function remove(Caster, Target)
  24. RemoveProc(Target)
  25. end