can somone tell me what is wrong here? thx The problem is that after I attack with normal attack (with 100% chance to crit that appears on my board) it doesn't crit.. I add also about 3 sec after attack untill remove 100% crit
Evasion & Critical chance is: Bash ability with 100% chance to stun and 2/2.5/3/3.5 multiple damage that stuns for 2 sec
Focus Shot is: Wind Walk ability
Evasion & Critical chance is: Bash ability with 100% chance to stun and 2/2.5/3/3.5 multiple damage that stuns for 2 sec
Focus Shot is: Wind Walk ability
Code:
Focus Shot
Event
Unit - A unit Starts an effect of an ability
Condition
(Ability being cast) equal to Focus Shot
Action
Unit - Order (Triggering unit) to Stop
Trigger - Turn off Focus Shot per sec <gen>
Trigger - Turn on Focus Shot per sec <gen>
Code:
Focus Shot per sec
Event
Time - Every 1.00 seconds of game time
Condition
Action
Set FocusShotCount = (FocusShotCount + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Condition
FocusShotCount equal to 1
Then - Action
Text - Create floating text that reads 1 above ArcherCaster with Z offset 0.00, using font size 14.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Text - Change (Last created floating text): Disable permanence
Text - Change the fading age of (Last created floating text) to 0.01 seconds
Tekst - Change the lifespan of (Last created floating text) to 1.50 seconds
Special Effect - Create a special effect attached to the origin of ArcherCaster using Abilities\Spells\Other\Charm\CharmTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Remove Evasion & Critical Strike from ArcherCaster
Unit - Add Evasion & Critical Strike (Archer lvl 1) to ArcherCaster
Else - Action
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
FocusShotCount equal to 2
Then - Action
Text - Create floating text that reads 2 above ArcherCaster with Z offset 0.00, using font size 14.00, color (79.00%, 100.00%, 50.00%), and 0.00% transparency
Text - Change (Last created floating text): Disable permanence
Text - Change the fading age of (Last created floating text) to 0.01 seconds
Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Special Effect - Create a special effect attached to the origin of ArcherCaster using Abilities\Spells\Other\Charm\CharmTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Remove Evasion & Critical Strike (Archer lvl 1) from ArcherCaster
Unit - Add Evasion & Critical Strike (Archer lvl 2) to ArcherCaster
Else - Action
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Condition
FocusShotCount equal to 3
Then - Action
Text - Create floating text that reads 3 above ArcherCaster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Text - Change (Last created floating text): Disable permanence
Text - Change the fading age of (Last created floating text) to 0.01 seconds
Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Special effect - Create a special effect attached to the origin of ArcherCaster using Abilities\Spells\Other\Charm\CharmTarget.mdl
Special effect - Destroy (Last created special effect)
Unit - Remove Evasion & Critical Strike (Archer lvl 2) from ArcherCaster
Unit - Add Evasion & Critical Strike (Archer lvl 3) to ArcherCaster
Else - Action
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Condition
FocusShotCount equal to 4
Then - Action
Text - Create floating text that reads 5 above ArcherCaster with Z offset 0.00, using font size 14.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Text - Change (Last created floating text): Disable permanence
Text - Change the fading age of (Last created floating text) to 0.01 seconds
Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Special effect - Create a special effect attached to the origin of ArcherCaster using Abilities\Spells\Other\Charm\CharmTarget.mdl
Special effect - Destroy (Last created special effect)
Unit - Remove Evasion & Critical Strike (Archer lvl 4) from ArcherCaster
Unit - Add Evasion & Critical Strike (Archer lvl 5) to ArcherCaster
Trigger - Turn off (This trigger)
Else - Action
Code:
Focus Shot attack
Event
Unit - A unit Is attacked
Condition
And - All (Conditions) are true
Condition
(Unit-type of (Attacking unit)) equal to |cffFFFF00Archer|r
((Attacking unit) has buff Focus Shot ) equal to TAK
Action
Trigger - Turn off Focus Shot per sec <gen>
Set FocusShotCount = 0
Unit - Remove Focus Shot buff from ArcherCaster
Unit - Remove Evasion & Critical Strike (Archer lvl 1) from ArcherCaster
Unit - Remove Evasion & Critical Strike (Archer lvl 2) from ArcherCaster
Unit - Remove Evasion & Critical Strike (Archer lvl 3) from ArcherCaster
Unit - Remove Evasion & Critical Strike (Archer lvl 4) from ArcherCaster
Unit - Remove Evasion & Critical Strike (Archer lvl 5) from ArcherCaster
Unit - Add Evasion & Critical Strike to ArcherCaster