HeadCrush.lua 644 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/HeadCrush.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.11 06:10:36
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 41 - 125 crushing damage on target
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal, SkillAmt)
  10. SpellDamage(Target, DmgType, MinVal, MaxVal)
  11. if LastSpellAttackHit() then
  12. -- Interrupts target
  13. Interrupt(Target)
  14. end
  15. if LastSpellAttackHit() then
  16. -- Decreases Focus of target by 6.9
  17. AddSkillBonus(Target, GetSkillIDByName("Focus"), SkillAmt)
  18. end
  19. end
  20. function remove(Caster, Target)
  21. RemoveSkillBonus(Target)
  22. end