Zurtrogx
Active Member
- Reaction score
- 24
Flamethrower
Problem status: SOLVED
______________________________________________________________
I am making a custom spell called Flamethrower.
The unit has a 50% chance on each hit to use its flamethrower.
When flamethrower is used, the unit recieved a critical multiplier and splash damage, but only for that one hit.
To do this, I have to use a trigger.
This is what I've got:
The only problem is, it doesn't have a 50% chance to activate. It only works 25% of the time.
Why is this happening?
Problem status: SOLVED
______________________________________________________________
I am making a custom spell called Flamethrower.
The unit has a 50% chance on each hit to use its flamethrower.
When flamethrower is used, the unit recieved a critical multiplier and splash damage, but only for that one hit.
To do this, I have to use a trigger.
This is what I've got:
Code:
Flamethrower cast
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Mechanical Master
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 50
Then - Actions
Unit - Add Flamethrower (Hidden Abilities) to (Attacking unit)
Unit - Set level of Flamethrower (Cleaving Attack) for (Attacking unit) to (Level of Flamethrower for (Attacking unit))
Unit - Set level of Flamethrower (Critical Strike) for (Attacking unit) to (Level of Flamethrower for (Attacking unit))
Player - Disable Flamethrower (Hidden Abilities) for (Owner of (Attacking unit))
Else - Actions
Unit - Remove Flamethrower (Hidden Abilities) from (Attacking unit)
The only problem is, it doesn't have a 50% chance to activate. It only works 25% of the time.
Why is this happening?