LungPuncture.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/LungPuncture.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.11 03:10:02
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Must be flanking or behind
  10. if not IsFlanking(Caster, Target) then
  11. SendMessage(Caster, "Must be flanking or behind", "yellow")
  12. return false
  13. end
  14. end
  15. -- Inflicts 365 - 609 melee damage on target
  16. function cast(Caster, Target, DmgType, MinVal, MaxVal, Strike, Skill)
  17. SpellDamage(Target, DmgType, MinVal, MaxVal)
  18. -- Decreases strikethrough chance of target by 5.8%.
  19. AddSpellBonus(Target, 680, Strike)
  20. -- Decreases Slashing, Crushing, Piercing, Ranged, Focus, Disruption, Subjugation and Ordination of target by 56.5
  21. AddSkillBonus(Target, GetSkillIDByName("Crushing"), Skill)
  22. AddSkillBonus(Target, GetSkillIDByName("Piercing"), Skill)
  23. AddSkillBonus(Target, GetSkillIDByName("Slashing"), Skill)
  24. AddSkillBonus(Target, GetSkillIDByName("Ranged"), Skill)
  25. AddSkillBonus(Target, GetSkillIDByName("Focus"), Skill)
  26. AddSkillBonus(Target, GetSkillIDByName("Disruption"), Skill)
  27. AddSkillBonus(Target, GetSkillIDByName("Subjugation"), Skill)
  28. AddSkillBonus(Target, GetSkillIDByName("Ordination"), Skill)
  29. end
  30. function remove(Caster, Target)
  31. RemoveSpellBonus(Target)
  32. RemoveSkillBonus(Target)
  33. end