MagmaChamber.lua 645 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/MagmaChamber.lua
  3. Script Author : Zcoretri
  4. Script Date : 2013.06.12 09:12:10
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Resistibility increases against targets higher than level 29.
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. if not IsEpic(Target) then
  16. AddControlEffect(Target, 4)
  17. end
  18. end
  19. function remove(Caster, Target)
  20. RemoveControlEffect(Target, 4)
  21. end