Some changes to rule text generation, minor format changes.

This commit is contained in:
LevelX2 2013-01-06 11:19:01 +01:00
parent 11e2df7a86
commit 2e31aacfaf
8 changed files with 54 additions and 23 deletions

View file

@ -16,9 +16,9 @@ public class SourcePermanentPowerCount implements DynamicValue {
if (sourcePermanent == null) {
sourcePermanent = (Permanent) game.getLastKnownInformation(sourceAbility.getSourceId(), Constants.Zone.BATTLEFIELD);
}
if (sourcePermanent != null)
if (sourcePermanent != null) {
return sourcePermanent.getPower().getValue();
}
return 0;
}
@ -32,9 +32,8 @@ public class SourcePermanentPowerCount implements DynamicValue {
return "X";
}
@Override
public String getMessage() {
return "point of power that {source} had";
return "{source}'s power";
}
}