helomellow
New Member
- Reaction score
- 0
Code:
Combust Mana
Events
Unit - A unit Starts the effect of an ability
Conditions
And - All (Conditions) are true
Conditions
(Ability being cast) Equal to Combust Mana
(Level of Combust Mana for (Casting unit)) Equal to 1
Actions
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (0.50 x ((Mana of (Casting unit)) - (Mana of (Target unit of ability being cast)))) damage of attack type Spells and damage type Normal
This is my spell trigger. It is supposed to deal damage based on the difference between the hero's current mana and the target's current mana. The problem is it doesn't deal damage at all to any unit or hero.
Code:
Steal
Events
Unit - A unit Is attacked
Conditions
(Level of Consume Mana for (Attacking unit)) Equal to 1
(Mana of (Attacked unit)) Greater than 50.00
((Attacking unit) has buff Mana Steal ) Equal to True
Actions
Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) - 8.00)
Unit - Set mana of (Attacking unit) to ((Mana of (Attacking unit)) + 8.00)
Here is another spell trigger for the same hero. It's a mana steal ability. While this one has no problems, it there anything that is wrong with this trigger?