mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed a bug with continuous static abilities with "RemoveAllAbilities" not granting mana abilities back.
- Removed stAnimate from Blood Moon and Lignify.
This commit is contained in:
@@ -276,9 +276,12 @@ abstract public class Ability_Mana extends Ability_Activated implements java.io.
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
//Mana abilities with same Descriptions are "equal"
|
||||
if (o == null)
|
||||
if (o == null || !(o instanceof Ability_Mana))
|
||||
return false;
|
||||
return o.toString().equals(this.toString());
|
||||
|
||||
Ability_Mana abm = (Ability_Mana) o;
|
||||
|
||||
return abm.toUnsuppressedString().equals(this.toUnsuppressedString());
|
||||
}
|
||||
|
||||
}//end class Ability_Mana
|
||||
|
||||
@@ -870,6 +870,11 @@ public abstract class SpellAbility {
|
||||
if(isSuppressed()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return toUnsuppressedString();
|
||||
}
|
||||
|
||||
public String toUnsuppressedString() {
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
SpellAbility node = this;
|
||||
|
||||
Reference in New Issue
Block a user