9
3

Shenanigans.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Shenanigans.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.17 11:10:30
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases threat priority of target by 2 positions
  9. -- Decreases Defense and Parry of caster by 459.0
  10. -- Stuns caster
  11. -- When damaged with a melee weapon this spell will cast Surprise Attack on target's attacker.
  12. -- Inflicts 1577 - 2628 piercing damage on target
  13. -- Grants a total of 1 trigger of the spell.
  14. function cast(Caster, Target, SkillAmt, DmgType, MinVal, MaxVal, Triggers)
  15. Say(Caster, "Threat Position not implemented.")
  16. AddSkillBonus(Target, GetSkillIDByName("Defense"), SkillAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Parry"), SkillAmt)
  18. AddControlEffect(Target, 4)
  19. AddProc(Target, 15, 100)
  20. end
  21. function proc(Caster, Target, Type, SkillAmt, DmgType, MinVal, MaxVal, Triggers)
  22. if Type == 15 then
  23. ProcDamage(Caster, Target, "Suprise Attack", DmgType, MinVal, MaxVal)
  24. end
  25. end
  26. function remove(Caster, Target)
  27. RemoveSkillBonus(Target)
  28. RemoveControlEffect(Target, 4)
  29. RemoveProc(Target)
  30. end