DarkBlade.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/DarkBlade.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.08 02:01:11 - potency 10/18/2019
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, BonusAmt, DefSkillAmt, SkillAmt)
  9. -- Increases STR of caster by 17.8
  10. AddSpellBonus(Target, 0, BonusAmt)
  11. -- Decreases Defense of caster by 1.8
  12. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkillAmt)
  13. -- Increases Crushing, Disruption, Piercing and Slashing of caster by 2.4
  14. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  15. AddSkillBonus(Target, GetSkillIDByName("Disruption"), SkillAmt)
  16. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  18. -- Add
  19. -- may not benefit from any stoneskin, death prevent, or 100% avoidance abilities while under this effect and for 5 seconds after the effect has been removed.
  20. Say(Caster, "Stoneskin and potency parts missing.")
  21. -- Add
  22. -- Increases potency added on target by 20%.
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Target)
  26. RemoveSkillBonus(Target)
  27. end