VexingVerses.lua 927 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubador/VexingVerses.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.01 11:09:59
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 4 - 6 magic damage on target
  9. -- Decreases Ability Casting Speed of target by 18.0%
  10. -- Decreases Defense of target by 2.0
  11. -- Target will lose 8% more power when power is consumed
  12. -- 8% of target's power consumed will also be drained from target's health
  13. function cast(Caster, Target, DmgType, MinVal, MaxVal, Debuff)
  14. SpellDamage(Target, DmgType, MinVal, MaxVal)
  15. AddSpellBonus(Target, 664, CastSpeed)
  16. AddSkillBonus(Target, GetSkillIDByName("Defense"), Debuff)
  17. Say(Caster, "Target will lose % more power + % of target's power consumed drained from target's health not implemented.")
  18. end
  19. function remove(Caster, Target)
  20. RemoveSpellBonus(Target)
  21. RemoveSkillBonus(Target)
  22. end