Minor changes/fixes

This commit is contained in:
LevelX2 2012-11-03 16:25:22 +01:00
parent 2d30a178ee
commit 0eb4596d05
3 changed files with 10 additions and 9 deletions

View file

@ -85,7 +85,7 @@ public class HisokaMinamoSensei extends CardImpl<HisokaMinamoSensei> {
class HisokaMinamoSenseiDiscardTargetCost extends CostImpl<HisokaMinamoSenseiDiscardTargetCost> {
protected int convertedManaCosts = 0;
protected int convertedManaCosts = 0;
public HisokaMinamoSenseiDiscardTargetCost(TargetCardInHand target) {
this.addTarget(target);
@ -102,10 +102,11 @@ class HisokaMinamoSenseiDiscardTargetCost extends CostImpl<HisokaMinamoSenseiDis
Player player = game.getPlayer(controllerId);
for (UUID targetId: targets.get(0).getTargets()) {
Card card = player.getHand().get(targetId, game);
if (card == null)
if (card == null) {
return false;
}
convertedManaCosts = card.getManaCost().convertedManaCost();
paid |= player.discard(card, null, game);
paid |= player.discard(card, null, game);
}
}
@ -122,9 +123,9 @@ class HisokaMinamoSenseiDiscardTargetCost extends CostImpl<HisokaMinamoSenseiDis
return new HisokaMinamoSenseiDiscardTargetCost(this);
}
public int getConvertedCosts() {
return convertedManaCosts;
}
public int getConvertedCosts() {
return convertedManaCosts;
}
}

View file

@ -56,12 +56,12 @@ public class AzoriusCharm extends CardImpl<AzoriusCharm> {
// Choose one Creatures you control gain lifelink until end of turn;
this.getSpellAbility().addEffect(new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Constants.Duration.EndOfTurn, new FilterControlledCreaturePermanent("Creatures")));
// or draw a card;
// or draw a card;
Mode mode = new Mode();
mode.getEffects().add(new DrawCardControllerEffect(1));
this.getSpellAbility().addMode(mode);
// or put target attacking or blocking creature on top of its owner's library.
// or put target attacking or blocking creature on top of its owner's library.
mode = new Mode();
mode.getTargets().add(new TargetAttackingOrBlockingCreature());
mode.getEffects().add(new PutOnLibraryTargetEffect(true));

View file

@ -95,7 +95,7 @@ public class PutOnLibraryTargetEffect extends OneShotEffect<PutOnLibraryTargetEf
@Override
public String getText(Mode mode) {
StringBuilder sb = new StringBuilder();
if (this.staticText != null) {
if (this.staticText != null && !this.staticText.isEmpty()) {
sb.append(staticText);
} else {
sb.append("Put ");