Code:
Moonlight learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Moonlight (day)
Actions
Set Weredog = (Triggering unit)
Unit - Add Moonlight (night) to Weredog
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 6.00
(In-game time of day) Less than 18.00
Then - Actions
Unit - Set level of Moonlight (night) for Weredog to 1
Else - Actions
Unit - Set level of Moonlight (night) for Weredog to ((Level of Moonlight (day) for Weredog) + 1)
Code:
Moonlight day
Events
Game - The in-game time of day becomes Greater than or equal to 6.00
Conditions
(In-game time of day) Less than 18.00
Actions
Unit - Set level of Moonlight (night) for Weredog to 1
Code:
Moonlight night
Events
Game - The in-game time of day becomes Less than 6.00
Game - The in-game time of day becomes Greater than or equal to 18.00
Conditions
Actions
Unit - Set level of Moonlight (night) for Weredog to ((Level of Moonlight (day) for Weredog) + 1)
I know why I think, because the meta'd unit is a different unit, and I just need to know how I could make the ability work for both.
I attached the map too.
Thanks!