mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
fix class name in some comments and console output
This commit is contained in:
@@ -645,7 +645,7 @@ public class PhaseUtil {
|
|||||||
|
|
||||||
// ***** Combat Utility **********
|
// ***** Combat Utility **********
|
||||||
// TODO: the below functions should be removed and the code blocks that use
|
// TODO: the below functions should be removed and the code blocks that use
|
||||||
// them should instead use SA_Restriction
|
// them should instead use SpellAbilityRestriction
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* isBeforeAttackersAreDeclared.
|
* isBeforeAttackersAreDeclared.
|
||||||
|
|||||||
@@ -1270,7 +1270,7 @@ public class AbilityFactory {
|
|||||||
* a {@link forge.card.spellability.SpellAbility} object.
|
* a {@link forge.card.spellability.SpellAbility} object.
|
||||||
*/
|
*/
|
||||||
private void makeRestrictions(final SpellAbility sa) {
|
private void makeRestrictions(final SpellAbility sa) {
|
||||||
// SpellAbility_Restrictions should be added in here
|
// SpellAbilityRestrictions should be added in here
|
||||||
final SpellAbilityRestriction restrict = sa.getRestrictions();
|
final SpellAbilityRestriction restrict = sa.getRestrictions();
|
||||||
if (this.mapParams.containsKey("Flashback")) {
|
if (this.mapParams.containsKey("Flashback")) {
|
||||||
sa.setFlashBackAbility(true);
|
sa.setFlashBackAbility(true);
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import forge.card.cardfactory.CardFactoryUtil;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* SpellAbility_Restriction class.
|
* SpellAbilityRestriction class.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author Forge
|
* @author Forge
|
||||||
@@ -51,7 +51,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Constructor for SpellAbility_Restriction.
|
* Constructor for SpellAbilityRestriction.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
public SpellAbilityRestriction() {
|
public SpellAbilityRestriction() {
|
||||||
@@ -208,7 +208,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
Player activator = sa.getActivatingPlayer();
|
Player activator = sa.getActivatingPlayer();
|
||||||
if (activator == null) {
|
if (activator == null) {
|
||||||
activator = c.getController();
|
activator = c.getController();
|
||||||
System.out.println(c.getName() + " Did not have activator set in SpellAbility_Restriction.canPlay()");
|
System.out.println(c.getName() + " Did not have activator set in SpellAbilityRestriction.canPlay()");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isSorcerySpeed() && !Phase.canCastSorcery(activator)) {
|
if (this.isSorcerySpeed() && !Phase.canCastSorcery(activator)) {
|
||||||
@@ -349,4 +349,4 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
return true;
|
return true;
|
||||||
} // canPlay()
|
} // canPlay()
|
||||||
|
|
||||||
} // end class SpellAbility_Restriction
|
} // end class SpellAbilityRestriction
|
||||||
|
|||||||
Reference in New Issue
Block a user