TongueTwist.lua 701 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/TongueTwist.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 02:11:13
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Interrupts target
  9. -- Inflicts 4 - 6 magic damage on target
  10. -- Stifles target
  11. -- If Target is not Epic
  12. -- Resistibility increases against targets higher than level 29.
  13. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  14. Say(Caster, "Resistibility not implemented.")
  15. Interrupt(Caster, Target)
  16. SpellDamage(Target, DmgType, MinVal, MaxVal)
  17. if not IsEpic() then
  18. AddControlEffect(Target, 2)
  19. end
  20. end
  21. function remove(Caster, Target)
  22. RemoveControlEffect(Target, 2)
  23. end