DaringAdvance.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. Say(Caster, "Fervor not Implemented")
  10. -- Decreases Defense of caster by 3.9
  11. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefAmt)
  12. -- Increases Slashing of caster by 5.3
  13. -- Increases Piercing, Crushing and Ranged of caster by 5.3
  14. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  15. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  16. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Ranged"), SkillAmt)
  18. AddProc(Target, 3, 30)
  19. end
  20. function proc(Caster, Target, Type, DefAmt, SkillAmt, DmgType, DmgAmt)
  21. -- On a melee hit this spell may cast Interrupt on target of attack. Triggers about 6.0 times per minute.
  22. -- Inflicts 19 melee damage on target
  23. -- Interrupts target
  24. if Type == 3 then
  25. ProcDamage(Caster, Target, "Interrupt", DmgType, DmgAmt)
  26. Interrupt(Caster, Target)
  27. end
  28. end
  29. function remove(Caster, Target)
  30. RemoveSkillBonus(Target)
  31. RemoveProc(Target)
  32. end