mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Some minor changes.
This commit is contained in:
parent
1b45c997aa
commit
6bd17716cd
2 changed files with 5 additions and 5 deletions
|
@ -28,8 +28,6 @@
|
||||||
|
|
||||||
package org.mage.plugins.card.dl.sources;
|
package org.mage.plugins.card.dl.sources;
|
||||||
|
|
||||||
import java.net.URLEncoder;
|
|
||||||
import mage.cards.SplitCard;
|
|
||||||
import org.mage.plugins.card.images.CardDownloadData;
|
import org.mage.plugins.card.images.CardDownloadData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +54,7 @@ public class MtgImageSource implements CardImageSource {
|
||||||
throw new Exception("Wrong parameters for image: collector id: " + collectorId + ",card set: " + cardSet);
|
throw new Exception("Wrong parameters for image: collector id: " + collectorId + ",card set: " + cardSet);
|
||||||
}
|
}
|
||||||
StringBuilder url = new StringBuilder("http://mtgimage.com/set/");
|
StringBuilder url = new StringBuilder("http://mtgimage.com/set/");
|
||||||
url.append(cardSet.toUpperCase()).append("/");
|
url.append(cardSet.toUpperCase()).append("/");
|
||||||
|
|
||||||
if (card.isSplitCard()) {
|
if (card.isSplitCard()) {
|
||||||
url.append(card.getDownloadName().replaceAll(" // ", ""));
|
url.append(card.getDownloadName().replaceAll(" // ", ""));
|
||||||
|
|
|
@ -142,12 +142,14 @@ class JhoiraOfTheGhituSuspendEffect extends OneShotEffect {
|
||||||
for (Ability ability :card.getAbilities()) {
|
for (Ability ability :card.getAbilities()) {
|
||||||
if (!oldAbilities.contains(ability)) {
|
if (!oldAbilities.contains(ability)) {
|
||||||
ability.setControllerId(source.getControllerId());
|
ability.setControllerId(source.getControllerId());
|
||||||
game.getState().addAbility(ability, card.getId(), card);
|
ability.setSourceId(source.getSourceId());
|
||||||
|
ability.setSourceObject(source.getSourceObject(game));
|
||||||
|
game.getState().addAbility(ability, card);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
game.informPlayers(new StringBuilder(controller.getName()).append(" suspends (").append(4).append(") ").append(card.getName()).toString());
|
game.informPlayers(controller.getName() + " suspends 4 - " + card.getName());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue