Minor changes to log and tooltip text generation.

This commit is contained in:
LevelX2 2015-05-10 11:24:43 +02:00
parent 7e9340dee7
commit 5abcefa09e
2 changed files with 4 additions and 5 deletions

View file

@ -115,7 +115,7 @@ public class StackAbilityView extends CardView {
for (UUID uuid : targetList) {
MageObject mageObject = game.getObject(uuid);
if (mageObject != null) {
names.add(mageObject.getLogName());
names.add(mageObject.getName());
}
}
@ -123,7 +123,7 @@ public class StackAbilityView extends CardView {
}
}
if (!names.isEmpty()) {
getRules().add("<i>Targets: " + names.toString() + "</i>");
getRules().add("<i>Related objects: " + names.toString() + "</i>");
}
// show for modal ability, which mode was choosen
if (ability.isModal()) {

View file

@ -151,7 +151,7 @@ class GraftStaticAbility extends StaticAbility {
class GraftDistributeCounterEffect extends OneShotEffect {
public GraftDistributeCounterEffect() {
super(Outcome.BoostCreature);
super(Outcome.Detriment); // because you can move ot also to opponents creature
this.staticText = "you may move a +1/+1 counter from this permanent onto it";
}
@ -175,8 +175,7 @@ class GraftDistributeCounterEffect extends OneShotEffect {
sourcePermanent.removeCounters(CounterType.P1P1.getName(), 1, game);
targetCreature.addCounters(CounterType.P1P1.createInstance(1), game);
if (!game.isSimulation()) {
StringBuilder sb = new StringBuilder("Moved one +1/+1 counter from ").append(sourcePermanent.getName()).append(" to ").append(targetCreature.getName());
game.informPlayers(sb.toString());
game.informPlayers("Moved one +1/+1 counter from " + sourcePermanent.getLogName() + " to " + targetCreature.getLogName());
}
return true;
}