- Improved AI of some cards using AF Charm.

This commit is contained in:
Sloth
2012-06-05 21:53:21 +00:00
parent afa99e7bde
commit 37f50ef5ee
10 changed files with 68 additions and 3 deletions

View File

@@ -166,6 +166,11 @@ public final class AbilityFactoryChangeZone {
AbilityFactoryChangeZone.changeZoneResolve(af, this); AbilityFactoryChangeZone.changeZoneResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryChangeZone.changeZoneCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryChangeZone.changeZonePlayDrawbackAI(af, this); return AbilityFactoryChangeZone.changeZonePlayDrawbackAI(af, this);
@@ -2249,6 +2254,11 @@ public final class AbilityFactoryChangeZone {
AbilityFactoryChangeZone.changeZoneAllResolve(af, this); AbilityFactoryChangeZone.changeZoneAllResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryChangeZone.changeZoneAllCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryChangeZone.changeZoneAllPlayDrawbackAI(af, this); return AbilityFactoryChangeZone.changeZoneAllPlayDrawbackAI(af, this);

View File

@@ -171,6 +171,11 @@ public class AbilityFactoryCounters {
AbilityFactoryCounters.putResolve(af, this); AbilityFactoryCounters.putResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryCounters.putCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryCounters.putPlayDrawbackAI(af, this); return AbilityFactoryCounters.putPlayDrawbackAI(af, this);

View File

@@ -173,6 +173,11 @@ public class AbilityFactoryDealDamage {
return AbilityFactoryDealDamage.this.damageDrawback(this); return AbilityFactoryDealDamage.this.damageDrawback(this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryDealDamage.this.dealDamageCanPlayAI(this);
}
@Override @Override
public String getStackDescription() { public String getStackDescription() {
return AbilityFactoryDealDamage.this.dealDamageStackDescription( return AbilityFactoryDealDamage.this.dealDamageStackDescription(
@@ -959,6 +964,11 @@ public class AbilityFactoryDealDamage {
return AbilityFactoryDealDamage.this.damageAllStackDescription(this.af, this); return AbilityFactoryDealDamage.this.damageAllStackDescription(this.af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryDealDamage.this.damageAllCanPlayAI(this.af, this);
}
@Override @Override
public void resolve() { public void resolve() {
AbilityFactoryDealDamage.this.damageAllResolve(this.af, this); AbilityFactoryDealDamage.this.damageAllResolve(this.af, this);

View File

@@ -688,6 +688,11 @@ public class AbilityFactoryDestroy {
return AbilityFactoryDestroy.destroyAllStackDescription(af, this, this.noRegen); return AbilityFactoryDestroy.destroyAllStackDescription(af, this, this.noRegen);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryDestroy.destroyAllCanPlayAI(af, this, this.noRegen);
}
@Override @Override
public void resolve() { public void resolve() {
AbilityFactoryDestroy.destroyAllResolve(af, this, this.noRegen); AbilityFactoryDestroy.destroyAllResolve(af, this, this.noRegen);

View File

@@ -150,6 +150,11 @@ public class AbilityFactoryPermanentState {
AbilityFactoryPermanentState.untapResolve(af, this); AbilityFactoryPermanentState.untapResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryPermanentState.untapCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryPermanentState.untapPlayDrawbackAI(af, this); return AbilityFactoryPermanentState.untapPlayDrawbackAI(af, this);
@@ -714,6 +719,11 @@ public class AbilityFactoryPermanentState {
AbilityFactoryPermanentState.tapResolve(af, this); AbilityFactoryPermanentState.tapResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryPermanentState.tapCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryPermanentState.tapPlayDrawbackAI(af, this); return AbilityFactoryPermanentState.tapPlayDrawbackAI(af, this);
@@ -1485,6 +1495,11 @@ public class AbilityFactoryPermanentState {
AbilityFactoryPermanentState.tapAllResolve(af, this); AbilityFactoryPermanentState.tapAllResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryPermanentState.tapAllCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryPermanentState.tapAllPlayDrawbackAI(af, this); return AbilityFactoryPermanentState.tapAllPlayDrawbackAI(af, this);

View File

@@ -1385,6 +1385,11 @@ public class AbilityFactoryPump {
AbilityFactoryPump.this.pumpAllResolve(this); AbilityFactoryPump.this.pumpAllResolve(this);
} // resolve } // resolve
@Override
public boolean canPlayAI() {
return AbilityFactoryPump.this.pumpAllCanPlayAI(this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryPump.this.pumpAllChkDrawbackAI(this); return AbilityFactoryPump.this.pumpAllChkDrawbackAI(this);

View File

@@ -160,6 +160,11 @@ public final class AbilityFactoryReveal {
AbilityFactoryReveal.digResolve(af, this); AbilityFactoryReveal.digResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryReveal.digCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return true; return true;

View File

@@ -152,6 +152,11 @@ public class AbilityFactoryZoneAffecting {
return AbilityFactoryZoneAffecting.drawStackDescription(af, this); return AbilityFactoryZoneAffecting.drawStackDescription(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryZoneAffecting.drawCanPlayAI(af, this);
}
@Override @Override
public void resolve() { public void resolve() {
AbilityFactoryZoneAffecting.drawResolve(af, this); AbilityFactoryZoneAffecting.drawResolve(af, this);
@@ -1121,6 +1126,11 @@ public class AbilityFactoryZoneAffecting {
AbilityFactoryZoneAffecting.discardResolve(af, this); AbilityFactoryZoneAffecting.discardResolve(af, this);
} }
@Override
public boolean canPlayAI() {
return AbilityFactoryZoneAffecting.discardCanPlayAI(af, this);
}
@Override @Override
public boolean chkAIDrawback() { public boolean chkAIDrawback() {
return AbilityFactoryZoneAffecting.discardCheckDrawbackAI(af, this); return AbilityFactoryZoneAffecting.discardCheckDrawbackAI(af, this);