Hello, i have an issue with this, the spell and everything works just perfectly fine BUT the random number which should be 50%, feels more like 5%, so the question is. Am i doing anything wrong with the chance of the spell to activate?
-
Shaman Experience Work
-
Events
- Game - GDD_Event becomes Equal to 0.00
-
Conditions
- ((Item carried by GDD_DamageSource of type Shaman Experience) is owned) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 100) Greater than or equal to 50
-
Then - Actions
- Set VariableSet ShamanExperience_CasterPoint = (Position of GDD_DamageSource)
- Set VariableSet ShamanExperience_Group = (Random 1 units from (Units within 5000.00 of ShamanExperience_CasterPoint.))
-
Unit Group - Pick every unit in ShamanExperience_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is A structure) Equal to False
- (Owner of (Picked unit)) Not equal to Player 12 (Brown)
- ((Picked unit) belongs to an ally of (Owner of GDD_DamageSource).) Equal to True
-
Then - Actions
- Unit - Create 1 Shaman Experience Caster for (Owner of GDD_DamageSource) at ShamanExperience_CasterPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_ShamanExperience_CasterPoint)
- Unit - Add Heal (Shaman Experience) to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Heal (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_ShamanExperience_Group)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events