Insolence.lua 1019 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/Insolence.lua
  3. Script Author : neatz09
  4. Script Date : 2020.10.25 05:10:37
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Applies Insolent Assault.
  9. -- Inflicts 404 - 607 melee damage on targets in Area of Effect
  10. -- Applies Insolent Gibe.
  11. -- Increases Threat to targets in Area of Effect by 3,413 - 4,850
  12. -- When any damage is received this spell has a 50% chance to cast Insolent Gibe on target's attacker.
  13. -- Increases Threat to target encounter by 1,617 - 1,857
  14. function cast(Caster, Target, DmgType, MinVal, MaxVal, MinHate, MaxHate, ProcMin, ProcMax, Chance)
  15. SpellDamage(Target, DmgType, MinVal, MaxVal)
  16. --CastSpell needed here
  17. AddProc(Target, 15, Chance)
  18. end
  19. function proc(Caster, Target, Type, DmgType, MinVal, MaxVal, MinHate, MaxHate, ProcMin, ProcMax, Chance)
  20. if Type == 15 then
  21. Say(Caster, "CastCustomSpell needed here")
  22. end
  23. end
  24. function remove(Caster, Target)
  25. RemoveProc(Target)
  26. end