diff --git a/src/main/java/controls/StepScheduler.java b/src/main/java/controls/StepScheduler.java index 19ed6e5..ff50f63 100644 --- a/src/main/java/controls/StepScheduler.java +++ b/src/main/java/controls/StepScheduler.java @@ -57,6 +57,21 @@ public boolean isDeckLess(){ return algo.getDeck().size()==0; } + public boolean isSucceedLatestAttack(){ + if(isATurn){ + if(isDeckLess()){ + return algo.getSucceedSelectA().getKey(); + }else{ + return algo.getSucceedDrawA().getKey(); + } + }else { + if(isDeckLess()){ + return algo.getSucceedSelectB().getKey(); + }else{ + return algo.getSucceedDrawB().getKey(); + } + } + } public boolean getIsATurn(){ return isATurn; }