mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- CheckStyle.
This commit is contained in:
@@ -684,7 +684,8 @@ public class CardFactorySorceries {
|
||||
|
||||
@Override
|
||||
public AbilitySub getCopy() {
|
||||
AbilitySub res = new DrawbackDonate(getSourceCard(),getTarget() == null ? null : new Target(getTarget()));
|
||||
AbilitySub res = new DrawbackDonate(getSourceCard(),
|
||||
getTarget() == null ? null : new Target(getTarget()));
|
||||
CardFactoryUtil.copySpellAbility(this, res);
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -849,7 +849,8 @@ public class CardFactoryUtil {
|
||||
}
|
||||
|
||||
public AbilityActivated getCopy() {
|
||||
AbilityActivated res = new AbilityUnearth(getSourceCard(),getPayCosts(),getTarget() == null ? null : new Target(getTarget()));
|
||||
AbilityActivated res = new AbilityUnearth(getSourceCard(),
|
||||
getPayCosts(), getTarget() == null ? null : new Target(getTarget()));
|
||||
CardFactoryUtil.copySpellAbility(this, res);
|
||||
final SpellAbilityRestriction restrict = new SpellAbilityRestriction();
|
||||
restrict.setZone(ZoneType.Graveyard);
|
||||
@@ -918,7 +919,8 @@ public class CardFactoryUtil {
|
||||
public boolean canPlay() {
|
||||
//Lands do not have SpellPermanents.
|
||||
if (sourceCard.isLand()) {
|
||||
return (AllZone.getZoneOf(sourceCard).is(ZoneType.Hand) || sourceCard.hasKeyword("May be played") ) && PhaseHandler.canCastSorcery(sourceCard.getController());
|
||||
return (AllZone.getZoneOf(sourceCard).is(ZoneType.Hand) || sourceCard.hasKeyword("May be played"))
|
||||
&& PhaseHandler.canCastSorcery(sourceCard.getController());
|
||||
}
|
||||
else {
|
||||
return sourceCard.getSpellPermanent().canPlay();
|
||||
@@ -1068,7 +1070,8 @@ public class CardFactoryUtil {
|
||||
}
|
||||
|
||||
public AbilityActivated getCopy() {
|
||||
AbilityActivated res = new AbilityTransmute(getSourceCard(),getPayCosts(),getTarget() == null ? null : new Target(getTarget()));
|
||||
AbilityActivated res = new AbilityTransmute(getSourceCard(),
|
||||
getPayCosts(), getTarget() == null ? null : new Target(getTarget()));
|
||||
CardFactoryUtil.copySpellAbility(this, res);
|
||||
res.getRestrictions().setZone(ZoneType.Hand);
|
||||
return res;
|
||||
@@ -1213,7 +1216,8 @@ public class CardFactoryUtil {
|
||||
}
|
||||
|
||||
public AbilityActivated getCopy() {
|
||||
AbilityActivated res = new AbilityEquip(getSourceCard(),getPayCosts(),getTarget() == null ? null : new Target(getTarget()));
|
||||
AbilityActivated res = new AbilityEquip(getSourceCard(),
|
||||
getPayCosts(), getTarget() == null ? null : new Target(getTarget()));
|
||||
CardFactoryUtil.copySpellAbility(this, res);
|
||||
return res;
|
||||
}
|
||||
@@ -3947,15 +3951,15 @@ public class CardFactoryUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static void correctAbilityChainSourceCard(final SpellAbility sa, final Card card)
|
||||
{
|
||||
public static void correctAbilityChainSourceCard(final SpellAbility sa, final Card card) {
|
||||
|
||||
sa.setSourceCard(card);
|
||||
if(sa.getAbilityFactory() != null)
|
||||
{
|
||||
if (sa.getAbilityFactory() != null) {
|
||||
|
||||
sa.getAbilityFactory().setHostCard(card);
|
||||
}
|
||||
if(sa.getSubAbility() != null)
|
||||
{
|
||||
if (sa.getSubAbility() != null) {
|
||||
|
||||
correctAbilityChainSourceCard(sa.getSubAbility(), card);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,8 +232,8 @@ public class StaticAbilityContinuous {
|
||||
CardList cardsIGainedAbilitiesFrom = AllZoneUtil.getCardsIn(validZones);
|
||||
cardsIGainedAbilitiesFrom = cardsIGainedAbilitiesFrom.getValidCards(valids, hostCard.getController(), hostCard);
|
||||
|
||||
if(cardsIGainedAbilitiesFrom.size() > 0)
|
||||
{
|
||||
if (cardsIGainedAbilitiesFrom.size() > 0) {
|
||||
|
||||
addFullAbs = new ArrayList<SpellAbility>();
|
||||
|
||||
for (Card c : cardsIGainedAbilitiesFrom) {
|
||||
|
||||
@@ -783,8 +783,8 @@ public final class GuiDisplayUtil {
|
||||
StaticEffects StaticHandler = AllZone.getStaticEffects();
|
||||
|
||||
List<PlayerZone> Zones = new ArrayList<PlayerZone>();
|
||||
for(Player p : Players)
|
||||
{
|
||||
for (Player p : Players) {
|
||||
|
||||
Zones.add(p.getZone(ZoneType.Ante));
|
||||
Zones.add(p.getZone(ZoneType.Battlefield));
|
||||
Zones.add(p.getZone(ZoneType.Command));
|
||||
|
||||
Reference in New Issue
Block a user