DarkNebula.lua 757 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/DarkNebula.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.05 07:03:59
  5. Script Purpose :
  6. :
  7. --]]
  8. -- need to add resistance function --
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. -- Inflicts 55 - 101 poison damage on target encounter
  11. if MaxVal ~= nil and MinVal < MaxVal then
  12. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  13. else
  14. SpellDamage(Target, DmgType, MinVal)
  15. end
  16. -- Stuns target encounter
  17. -- If Target is not Epic
  18. if not IsEpic(Target) then
  19. AddControlEffect(Target, 4)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveControlEffect(Target, 4)
  24. end