So the problem im having is, my trigger. Everything works fine except for one function, here the function that is crippling my map.
Code: Select all
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Code: Select all
Infect Unit
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Infect
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to True
Then - Actions
Game - Display to (All players) the text: (|cffffcc00 + ((Name of (Owner of (Target unit of ability being cast))) + 's|r |cff808040hero has been infected! He will lose all control of his Hero in 10 seconds|r))
Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Virus suc...
Wait 10.00 seconds
Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Unit succ...
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Unit - Add Infected to (Target unit of ability being cast)
Unit - Add Infect to (Target unit of ability being cast)
Game - Display to (All players) the text: (|cffff0000 + ((Name of (Owner of (Target unit of ability being cast))) + has been infected and has been defeated.|r))
Game - Defeat (Owner of (Target unit of ability being cast)) with the message: You have been Infec...
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Game - Display to (Player group((Owner of (Target unit of ability being cast)))) the text: |cffffcc00One of yo...
Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Virus suc...
Cinematic - Ping minimap for (Player group((Owner of (Target unit of ability being cast)))) at (Position of (Target unit of ability being cast)) for 2.00 seconds
Wait 10.00 seconds
Game - Display to (Player group((Owner of (Casting unit)))) the text: |cffff0000Unit succ...
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Unit - Add Infected to (Target unit of ability being cast)
Unit - Add Infect to (Target unit of ability being cast)
Else - Actions
- SuperCoke