DDS:
http://www.hiveworkshop.com/forums/spells-569/gui-damage-engine-v2-2-1-0-a-201016/
Code Type: vJass
Spell Type: Hero/Unit (both)
Target Type: Level 1 & 2 are cast on a single unit, Lever 3 is cast in an AOE around the caster
Area of Effect: 500 (both cast range and AOE)
Number of Levels: 3
Mana Cost: Lvl 1= 6 mana, Lvl 2&3= 5 mana
Cooldown: none - but should have a 30 sec duration
In-game Description:
This is a negative spell similar to "Banshee's 'Curse'" it causes the unit that is under the effect of the spell to deal minimal damage at level 1 at casting cost 6, minimal damage at level 2 at casting cost 5 and level 3 minimal - 1 damage (if that is not less than 1 in this case it should be 1 not less) for the duration of the spell only!
How the spell works:
Ex.: a unit has 1-5 damage with the spell it should do 1 damage (lvl 1 and 2) and 1 dmg (at level 3, [1-1=1 because it should still do some damage] for every unit in the AoE) for the duration of the spell only;
Of course if it has 3-9 it should do 3 damage (lvl 1 and 2) and (at lvl 3) (3-1) 2 dmg (for every unit in the AoE) for the duration of the spell...