[Solved] How to detect Phase Shift?

I thought phase shift just applied invisibility so if you had true sight it didn't work?
There's frames of Invulnerable applied to the unit last I checked, I think that's how it blocks damage. Invisibility would still take damage during the 'fade time' phase of the ability (since the unit is technically still considered visible)
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
You could also try the method where you put a hidden "defend" ability on the unit. When the phase they undefend. Then just detect when they undefend. This might cause other unrelated problems with ankhs and other defend abilities. Because I think those also trigger undefend.
I'm pretty sure you're meant to use Orders to detect phase shift in the first place, so it'd probably defeat the purpose. Could be wrong though.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Never mind, I thought Phase Shift was an "Order only" type of ability for some reason. Figured you could detect "phaseshifton" and "phaseshiftoff".

Anyway, the Buff check is very practical, although maybe this would work better and apply to more than just Phase Shift:
  • ((Triggering unit) is invulnerable) Equal to True
 
Top