1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-03-31 17:00:10 -09:00

* Fixed that the name of a face down spell on the stack was shown in the game log if the spell was targeted by another stack object.

This commit is contained in:
LevelX2 2015-12-14 22:03:00 +01:00
parent a0f80b785c
commit 0157bf0494
2 changed files with 9 additions and 1 deletions
Mage/src/main/java/mage/target/common
Utils/release

View file

@ -43,6 +43,7 @@ import mage.game.permanent.Permanent;
import mage.game.stack.Spell;
import mage.game.stack.StackObject;
import mage.target.TargetImpl;
import mage.util.GameLog;
/**
*
@ -254,7 +255,11 @@ public class TargetSpellOrPermanent extends TargetImpl {
sb.append(permanent.getLogName()).append(" ");
} else {
Spell spell = game.getStack().getSpell(targetId);
sb.append(spell.getLogName()).append(" ");
if (spell.isFaceDown(game)) {
sb.append(GameLog.getNeutralColoredText("face down spell"));
} else {
sb.append(spell.getLogName()).append(" ");
}
}
}
return sb.toString();

View file

@ -45,6 +45,9 @@ git log a5d7ca83d7ac5e13805bff58f2838384a97beed6..head --diff-filter=A --name-st
since 1.4.5.v0
git log f3019d70fd2ce7c0f2bdaeafafa36ef4d81330c5..head --diff-filter=A --name-status | sed -ne "s/^A[^u]Mage.Sets\/src\/mage\/sets\///p" | sort > added_cards.txt
since 1.4.6.v0
git log 207f486afc462490790a3db141ff79e20cfb77c0..head --diff-filter=A --name-status | sed -ne "s/^A[^u]Mage.Sets\/src\/mage\/sets\///p" | sort > added_cards.txt
3. Copy added_cards.txt to trunk\Utils folder
4. Run script:
> perl extract_in_wiki_format.perl