mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix advanced Flash logic messing with PlayEffectAi (#4989)
* - Add puzzle PS_PIP1. * - Fix advanced Flash logic messing with PlayEffect AI (e.g. Discover X or transformed Battle) * - Better tweak to Flash logic conditions
This commit is contained in:
@@ -90,7 +90,7 @@ public class PermanentCreatureAi extends PermanentAi {
|
||||
if (ai.getController().isAI()) {
|
||||
advancedFlash = ((PlayerControllerAi)ai.getController()).getAi().getBooleanProperty(AiProps.FLASH_ENABLE_ADVANCED_LOGIC);
|
||||
}
|
||||
if (card.hasKeyword(Keyword.FLASH) || (!ai.canCastSorcery() && sa.canCastTiming(ai))) {
|
||||
if (card.hasKeyword(Keyword.FLASH) || (!ai.canCastSorcery() && sa.canCastTiming(ai) && !sa.isCastFromPlayEffect())) {
|
||||
if (advancedFlash) {
|
||||
return doAdvancedFlashLogic(card, ai, sa);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user