[Spell Request/Help] Cone spell
I would like a spell, if possible that is based off Breath of Frost and MUI. I need it to be triggered so I can mess around with the damage values. Basically, I want it to be damage over time only, dealing damage based on how much HP the caster is missing. I was on my way of making one that is MUI when I got stuck at forming groups that are caught in different cones (from Hero1, Hero2).
If you don't feel like making such a spell, I'd really appreciate some pointers on how to fix my version instead.
I would like a spell, if possible that is based off Breath of Frost and MUI. I need it to be triggered so I can mess around with the damage values. Basically, I want it to be damage over time only, dealing damage based on how much HP the caster is missing. I was on my way of making one that is MUI when I got stuck at forming groups that are caught in different cones (from Hero1, Hero2).
If you don't feel like making such a spell, I'd really appreciate some pointers on how to fix my version instead.
Trigger:
- Ignite Cast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Ignite
- Actions
- Unit Group - Add (Triggering unit) to Ignite_CasterGroup
- Unit - Add Custom Value to (Triggering unit)
- Unit - Set level of Custom Value for (Triggering unit) to 1
- Trigger - Turn on Ignite DoT <gen>
- Events
Trigger:
- Ignite DoT
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ignite_CasterGroup is empty) Equal to True
- Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
- Unit Group - Pick every unit in Ignite_CasterGroup and do (Actions)
- Loop - Actions
- Unit - Set level of Custom Value for (Picked unit) to ((Level of Custom Value for (Picked unit)) + 1)
- Set Ignite_Lvl = (Level of Ignite for (Picked unit))
- Set Ignite_Damage = (((20.00 + (Real(Ignite_Lvl))) / 100.00) x ((Max life of (Picked unit)) - (Life of (Picked unit))))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Custom Value for (Picked unit)) Less than 6
- Then - Actions
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) has buff Ignite buff) Equal to True
- Then - Actions
- Unit - Cause (Picked unit) to damage (Picked unit), dealing Ignite_Damage damage of attack type Spells and damage type Normal
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Else - Actions
- Unit Group - Remove (Picked unit) from Ignite_CasterGroup
- If - Conditions
- Loop - Actions
- Unit Group - Pick every unit in Ignite_CasterGroup and do (Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events