HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making a spell

04-19-2008, 12:54 PM#1
dabest2503
Trigger:
Mana Bomb
Collapse Events
Unit - A unit Finishes casting an ability
Collapse Conditions
(Ability being cast) Equal to Mana Disruption
Collapse Actions
Set ManaBombDamage = (Integer((Mana of (Casting unit))))
Unit - Set life of (Target unit of ability being cast) to ((Mana of (Casting unit)) - (Life of (Target unit of ability being cast)))
Unit - Set mana of (Casting unit) to 0.00%

The spell is supposed to damage the targetted unit based on how much mana the casting unit has left.

It doesn't damage the targetted unit. Can anyone help me to fix this?
04-19-2008, 01:03 PM#2
Alexander244
Try this:
Trigger:
Mana Bomb
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Mana Disruption
Collapse Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Mana of (Triggering unit)) damage of attack type Spells and damage type Magic
Unit - Set mana of (Triggering unit) to 0.00
04-20-2008, 02:38 AM#3
dabest2503
I changed triggering unit to casting unit and your trigger worked. Thanks.
04-20-2008, 03:00 AM#4
Vexorian
Quote:
Originally Posted by dabest2503
I changed triggering unit to casting unit and your trigger worked. Thanks.
Why did you make such change?
04-20-2008, 03:05 AM#5
Gorman
In this case the unit that triggers the trigger, is the casting unit, its unnecessary. but i think its good practice to specify which unit ur talking about, rather then just spamming triggering unit.

Oh, and in ur original unit, u did "Mana of caster - health of unit" that should actualy be "health of unit - mana of caster" ^^