Computer phases?

I've been working on a all-pump keyword (like Overrun). Using this line from most of the other pump keywords:
So I flipped it a bit, and did a console print, and found that indeed, every time canPlayAI was called, getPhase returned "Main2".
However, during the human turn, it returns correct data.
On the other hand, I'm sure I've seen the AI play a pump spell, but how? (I put the same console print in the spPumpTgt section and found the same results)
- Code: Select all
if(AllZone.Phase.getPhase().equals(Constant.Phase.Main2)) return false;
So I flipped it a bit, and did a console print, and found that indeed, every time canPlayAI was called, getPhase returned "Main2".
However, during the human turn, it returns correct data.
On the other hand, I'm sure I've seen the AI play a pump spell, but how? (I put the same console print in the spPumpTgt section and found the same results)