DaringAdvance.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : Spells/Scout/Rogue/DaringAdvance.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.16 03:12:33
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DefAmt, SkillAmt, DmgType, DmgAmt)
  9. -- Decreases Defense of caster by 3.9
  10. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  11. -- Increases Slashing of caster by 5.3
  12. -- Increases Piercing, Crushing and Ranged of caster by 5.3
  13. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  14. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  15. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  16. AddSkillBonus(Target, GetSkillIDByName("Ranged"), SkillAmt)
  17. AddProc(Target, 3, 30)
  18. end
  19. function proc(Caster, Target, Type, DefAmt, SkillAmt, DmgType, DmgAmt)
  20. -- On a melee hit this spell may cast Interrupt on target of attack. Triggers about 6.0 times per minute.
  21. -- Inflicts 19 melee damage on target
  22. -- Interrupts target
  23. if Type == 3 then
  24. ProcDamage(Caster, Target, "Interrupt", DmgType, DmgAmt)
  25. Interrupt(Caster, Target)
  26. end
  27. end
  28. function remove(Caster, Target)
  29. RemoveSkillBonus(Target)
  30. RemoveProc(Target)
  31. end