- Joined
- Feb 7, 2009
- Messages
- 42
This is a small part of a trigger that runs some abilities
The ability in this trigger is Bloodlust
Bloodlust - Casts bloodlust on all friendly heroes
Somehow the trigger is not working correctly, but I use a similiar trigger for another ability that casts Inner Fire on all friendly heroes and it works perfectly, it's exactly the same actions and same order, but the bloodlust does not work correctly
Does anyone know what's wrong with my trigger?
Info:
The 'Bloodlust' ability is based on a 'Thunder Clap' ability with no Aoe
The dummy unit does have the dummy ability
The dummy unit does have mana to use the dummy ability
The dummy ability is based on wc3 default bloodlust, but with levels
Trigger : The complete trigger runs whenever a 'Shaman' starts the effect of an ability and sets the initial variables before checking what ability was used.
The ability in this trigger is Bloodlust
Bloodlust - Casts bloodlust on all friendly heroes
Somehow the trigger is not working correctly, but I use a similiar trigger for another ability that casts Inner Fire on all friendly heroes and it works perfectly, it's exactly the same actions and same order, but the bloodlust does not work correctly
Does anyone know what's wrong with my trigger?
Info:
The 'Bloodlust' ability is based on a 'Thunder Clap' ability with no Aoe
The dummy unit does have the dummy ability
The dummy unit does have mana to use the dummy ability
The dummy ability is based on wc3 default bloodlust, but with levels
Trigger : The complete trigger runs whenever a 'Shaman' starts the effect of an ability and sets the initial variables before checking what ability was used.
- Bloodlust
-
Events
- Unit - A unit starts the effect of of an ability
- Conditions
-
Actions
- Set Caster = (Triggering Unit)
- Set Player = (Owner of (Triggering Unit)
- Set Player_Number = (Player number of (Owner of (Triggering Unit)
- Set Target = (Target unit of ability being cast)
- Set Ability_Level = (Level of (Ability veing cast) for (Triggering Unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) equal to Bloodlust
-
Then - Actions
- Set Integer = 0
- Set tempGroup = (Units in (Playable map area)((((Matching unit) is a Hero) Equal to True) and (((Matching unit) is alive) Equal to True)))
- Set tempPoint = (Position of Caster)
-
Unit Group - Pick every unit in tempGroup and do (Actions)
-
Loop - Actions
- Set Integer = (Integer + 1)
- Set Unit_A[Integer] = (Picked unit)
- Create 1 Dummy(Bloodlust) for Player at tempPoint facing (270.0) degrees
- Set Caster_A[Integer] = (Last created unit)
- Unit - Set level of Dummy(Bloodlust) for Caster_A[Integer] to Ability_Level
- Unit - Order Caster_A[Integer] to (Convert bloodlust to unit targeted order) Unit_A[Integer]
- Unit - Add a 3.00 Generic expiration timer to Caster_A[Integer]
-
Loop - Actions
- Set Integer = 0
- Custom script: call RemoveLocation (udg_tempPoint)
- Custom script: call DestroyGroup (udg_tempGroup)
- Skip remaining actions
- Else - Actions
-
If - Conditions
Last edited: