Hi,
I am making a Hero, who can learn the Phoenix Fire ability. As you know, you cannot select or see the spell when learned. So I thought of adding a new spell to it - Devour Magic from the undead Destroyers.
I triggered it to add the ability level equel to the learned ability level.
Now, since the Devour Magic does not affect passive buffs, it seemed kinda lame. So I wanted to trigger it, so it would dispell the buffs and grant health.
I started here:
I think I have to make an Integer = units in MysticEssenceGroup and deal -50 damage for each unit.
But how? ^^
And ofc, I should add a condition, making it impossible to remove buffs from the caster, since it would be a hardcore dispell power and free health farm. How would you recommend that as well?
I am making a Hero, who can learn the Phoenix Fire ability. As you know, you cannot select or see the spell when learned. So I thought of adding a new spell to it - Devour Magic from the undead Destroyers.
I triggered it to add the ability level equel to the learned ability level.
-
Learn Mystic Essence
-
Events
- Unit - A unit Learns a skill
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Unit-type of (Learning Hero)) Equal to Murloc
- (Learned Hero Skill) Equal to Murloc (Mystic Essence Passive)
-
Conditions
-
And - All (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Murloc (Mystic Essence Passive) for (Learning Hero)) Equal to 1
-
Then - Actions
- Unit - Add Murloc (Mystic Essence Activate) to (Learning Hero)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Murloc (Mystic Essence Passive) for (Learning Hero)) Equal to 2
-
Then - Actions
- Unit - Set level of Murloc (Mystic Essence Activate) for (Learning Hero) to 2
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Murloc (Mystic Essence Passive) for (Learning Hero)) Equal to 3
-
Then - Actions
- Unit - Set level of Murloc (Mystic Essence Activate) for (Learning Hero) to 3
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Now, since the Devour Magic does not affect passive buffs, it seemed kinda lame. So I wanted to trigger it, so it would dispell the buffs and grant health.
I started here:
-
Consume Mystic Essence
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Murloc (Mystic Essence Activate)
-
Actions
- Set MysticEssencePoint = (Target point of ability being cast)
- Set MysticEssenceGroup = (Units within 150.00 of MysticEssencePoint)
-
Unit Group - Pick every unit in MysticEssenceGroup and do (Actions)
-
Loop - Actions
- Unit - Remove All buffs from (Picked unit)
-
Loop - Actions
-
Events
I think I have to make an Integer = units in MysticEssenceGroup and deal -50 damage for each unit.
But how? ^^
And ofc, I should add a condition, making it impossible to remove buffs from the caster, since it would be a hardcore dispell power and free health farm. How would you recommend that as well?