mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
* Some minor changes, some fixes to Dideon Battle-Forged.
This commit is contained in:
parent
ae1f726f56
commit
8caa3087bd
4 changed files with 17 additions and 6 deletions
|
|
@ -69,8 +69,9 @@ public class CopyTargetSpellEffect extends OneShotEffect {
|
|||
if (activateMessage.startsWith(" casts ")) {
|
||||
activateMessage = activateMessage.substring(6);
|
||||
}
|
||||
if (!game.isSimulation())
|
||||
game.informPlayers(player.getLogName() + " copies " + activateMessage);
|
||||
if (!game.isSimulation()) {
|
||||
game.informPlayers(player.getLogName() + activateMessage);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -69,8 +69,8 @@ public class StormAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getSourceId().equals(this.sourceId)) {
|
||||
StackObject spell = game.getStack().getStackObject(this.sourceId);
|
||||
if (event.getSourceId().equals(getSourceId())) {
|
||||
StackObject spell = game.getStack().getStackObject(getSourceId());
|
||||
if (spell instanceof Spell) {
|
||||
for (Effect effect : this.getEffects()) {
|
||||
effect.setValue("StormSpell", spell);
|
||||
|
|
@ -108,7 +108,7 @@ class StormEffect extends OneShotEffect {
|
|||
Spell spell = (Spell) this.getValue("StormSpell");
|
||||
if (spell != null) {
|
||||
if (!game.isSimulation()) {
|
||||
game.informPlayers("Storm: " + spell.getName() + " will be copied " + stormCount + " time" + (stormCount > 1 ?"s":""));
|
||||
game.informPlayers("Storm: " + spell.getLogName() + " will be copied " + stormCount + " time" + (stormCount > 1 ?"s":""));
|
||||
}
|
||||
for (int i = 0; i < stormCount; i++) {
|
||||
Spell copy = spell.copySpell();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue