DeviousBlade.lua 971 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/DeviousBlade.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.04 10:11:32
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 443 - 542 melee damage on target
  9. function cast(Caster, Target, Dmgtype, MinVal, MaxVal, Hate)
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. if LastSpellAttackHit() then
  12. SetSpellTriggerCount(1, 1)
  13. AddProc(Target, 16, 100)
  14. end
  15. end
  16. function proc(Target, Caster, Type, DmgType, MinVal, MaxVal, Hate)
  17. -- On a melee hit this spell will cast Blamed on target of attack. Lasts for 10.0 seconds.
  18. -- Increases Hate Gain of target by 30.0%
  19. -- Grants a total of 1 trigger of the spell.
  20. if Type == 17 then
  21. Spell = GetSpell(5446, GetSpellTier())
  22. SetSpellDataIndex(Spell, 0, Hate)
  23. CastCustomSpell(Spell, Caster, Target)
  24. RemoveTriggerFromSpell()
  25. end
  26. end
  27. function remove(Caster, Target)
  28. RemoveProc(Target)
  29. end