- Joined
- Sep 11, 2023
- Messages
- 211
Enraging Roar
The Warlord lets loose a furious roar that instills bloodrage in nearby friendly units.
Lasts 45 seconds.
Increases the attack rate by 40/55/70, but drains 4 hit points per second.
In my modmap have got this roar ability on a hero that when cast applies an orcish version of unholy frenzy simply named bloodrage to all that have been in range. Except it has been reported that it does not function correctly, apparently only one unit was getting the buff so set about to trying to fix it.
I would like to change the trigger so that it takes effect when the ability gets used, as every other roar ability also works at moment of cast.
If i set the event to
Another issue i have got is to how can make it work using only one dummy instead of having to summon one per affected unit ?
The Warlord lets loose a furious roar that instills bloodrage in nearby friendly units.
Lasts 45 seconds.
Increases the attack rate by 40/55/70, but drains 4 hit points per second.
In my modmap have got this roar ability on a hero that when cast applies an orcish version of unholy frenzy simply named bloodrage to all that have been in range. Except it has been reported that it does not function correctly, apparently only one unit was getting the buff so set about to trying to fix it.
I would like to change the trigger so that it takes effect when the ability gets used, as every other roar ability also works at moment of cast.
If i set the event to
-
Unit - A unit Starts the effect of an ability
Another issue i have got is to how can make it work using only one dummy instead of having to summon one per affected unit ?
-
Enraging Roar
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Enraging Roar
-
-
Actions
-
Set WarCry_AoE = 500.00
-
Set WarCry_Caster = (Triggering unit)
-
Set WarCry_Player = (Triggering player)
-
Set WarCry_Point = (Position of WarCry_Caster)
-
Set WarCry_Group = (Units within (WarCry_AoE + 300.00) of WarCry_Point)
-
Unit Group - Pick every unit in WarCry_Group and do (Actions)
-
Loop - Actions
-
Set WarCry_Target = (Picked unit)
-
Custom script: if IsUnitInRange(udg_WarCry_Target, udg_WarCry_Caster, udg_WarCry_AoE) then
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Enraging Roar for WarCry_Caster) Equal to 1
-
(WarCry_Target is alive) Equal to True
-
(WarCry_Target belongs to an enemy of WarCry_Player) Equal to False
-
(WarCry_Target has buff Enraging Roar ) Equal to True
-
-
Then - Actions
-
Unit - Create 1 Dummy Unit (0 Collision) for WarCry_Player at (Position of WarCry_Caster) facing WarCry_Point
-
Set WarCry_Dummy = (Last created unit)
-
Unit - Add a 0.30 second Generic expiration timer to WarCry_Dummy
-
Unit - Add Bloodrage (dummy) to WarCry_Dummy
-
Unit - Set level of Bloodrage (dummy) for WarCry_Dummy to 1
-
Unit - Order WarCry_Dummy to Undead Necromancer - Unholy Frenzy WarCry_Target
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Enraging Roar for WarCry_Caster) Equal to 2
-
(WarCry_Target is alive) Equal to True
-
(WarCry_Target belongs to an enemy of WarCry_Player) Equal to False
-
(WarCry_Target has buff Enraging Roar ) Equal to True
-
-
Then - Actions
-
Unit - Create 1 Dummy Unit (0 Collision) for WarCry_Player at (Position of WarCry_Caster) facing WarCry_Point
-
Set WarCry_Dummy = (Last created unit)
-
Unit - Add a 0.30 second Generic expiration timer to WarCry_Dummy
-
Unit - Add Bloodrage (dummy) to WarCry_Dummy
-
Unit - Set level of Bloodrage (dummy) for WarCry_Dummy to 2
-
Unit - Order WarCry_Dummy to Undead Necromancer - Unholy Frenzy WarCry_Target
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Enraging Roar for WarCry_Caster) Equal to 3
-
(WarCry_Target is alive) Equal to True
-
(WarCry_Target belongs to an enemy of WarCry_Player) Equal to False
-
(WarCry_Target has buff Enraging Roar ) Equal to True
-
-
Then - Actions
-
Unit - Create 1 Dummy Unit (0 Collision) for WarCry_Player at (Position of WarCry_Caster) facing WarCry_Point
-
Set WarCry_Dummy = (Last created unit)
-
Unit - Add a 0.30 second Generic expiration timer to WarCry_Dummy
-
Unit - Add Bloodrage (dummy) to WarCry_Dummy
-
Unit - Set level of Bloodrage (dummy) for WarCry_Dummy to 3
-
Unit - Order WarCry_Dummy to Undead Necromancer - Unholy Frenzy WarCry_Target
-
-
Else - Actions
-
-
Custom script: endif
-
-
-
Custom script: call RemoveLocation (udg_WarCry_Point)
-
Custom script: call DestroyGroup(udg_WarCry_Group)
-
-