i am working on a spell :
1)hero summons a unit
2)summoned unit cast's a spell (only if mana of summoning hero greater then xxx)
the problem is that after the summon unit dyes and i resummon it it ignores the xxx mana condition and cast's the spell
unit[99] is the summoning hero
1)hero summons a unit
2)summoned unit cast's a spell (only if mana of summoning hero greater then xxx)
the problem is that after the summon unit dyes and i resummon it it ignores the xxx mana condition and cast's the spell
Trigger:
- CS
- Events
- Unit - A unit starts the effect of an ability
- Conditions
- (Ability beaing cast) Equal to CS
- Actions
- If (All conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Mana of Unit[99]) Greater than 500.00
- Then - Actions
- Unit - Set mana of Unit[99] to ((Procentage mana of Unit[99]) - 50.00)%
- Else - Actions
- Unit - Order (Casting Unit) to Stop
- If - Conditions
- If (All conditions are True) then do (Then Actions) else do (Else Actions)
- Events
unit[99] is the summoning hero