Hi, I'm trying to make auto-castable "cleave" ability that costs 5 mana. I've tried many solutions but none of them work 100%. Closest I've come to achieving it is using flaming arrows as dummy ability and then when it's autocast is turned on I add cleave to hero. Here's trigger for it:
There are 2 problems with this however:
1) when autocast is turned on, hero will have cleave regardless if he has mana for it or not
2) when autocast is turned off, it won't work when manually casted
If anyone can help me, or find a different working method for this (if possible without using any damage detection systems) I'd be thankful. Cheers!
-
Events
- Unit - A unit Is issued an order with no target
-
Conditions
- (Level of Cleave for (Triggering unit)) Greater than 0
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (Order(flamingarrows))
-
Then - Actions
- Unit - Add Cleaving Attack (Neutral Hostile) to (Triggering unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (Order(unflamingarrows))
-
Then - Actions
- Unit - Remove Cleaving Attack (Neutral Hostile) from (Triggering unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
1) when autocast is turned on, hero will have cleave regardless if he has mana for it or not
2) when autocast is turned off, it won't work when manually casted
If anyone can help me, or find a different working method for this (if possible without using any damage detection systems) I'd be thankful. Cheers!