I'm making a game where a programmer gets trapped in his own game, but he has powerful Debug skills that allow him to do anything from removing glitchy states, to dealing armor-ignoring damage, to outright blinking an enemy right out of existence. However, his Debug skills are useless unless he has run a memory scan on an enemy to discover its memory address (resulting in the enemy gaining a "Scanned" state).
So my question is this: How do I make it so that a skill only succeeds on a target that has a certain state applied?
So my question is this: How do I make it so that a skill only succeeds on a target that has a certain state applied?