Added source object name to effect rule text in choice window of replacment effects to select the order the effects resolve.

This commit is contained in:
LevelX2 2015-05-06 15:56:11 +02:00
parent 99d208a2d9
commit 607680b78a

View file

@ -1084,7 +1084,7 @@ public class ContinuousEffects implements Serializable {
for (Ability ability :entry.getValue()) {
MageObject object = game.getObject(ability.getSourceId());
if (object != null) {
texts.put(ability.getId().toString() + "_" + entry.getKey().getId().toString(), ability.getRule(object.getLogName()));
texts.put(ability.getId().toString() + "_" + entry.getKey().getId().toString(), object.getLogName() +": " + ability.getRule(object.getLogName()));
} else {
texts.put(ability.getId().toString() + "_" + entry.getKey().getId().toString(), entry.getKey().getText(null));
}