fix #14045 (Ultima, Origin of Oblivion)

rename method to correct typo
This commit is contained in:
xenohedron 2025-10-26 18:33:07 -04:00
parent ef4d48a654
commit 313651cfc8
5 changed files with 6 additions and 6 deletions

View file

@ -84,7 +84,7 @@ class UltimaOriginOfOblivionEffect extends ContinuousEffectImpl {
}
switch (layer) {
case TypeChangingEffects_4:
permanent.looseAllAbilities(game);
permanent.removeAllAbilities(source.getSourceId(), game);
permanent.addAbility(new ColorlessManaAbility(), source.getSourceId(), game);
return true;
case AbilityAddingRemovingEffects_6:

View file

@ -72,7 +72,7 @@ class YixlidJailerEffect extends ContinuousEffectImpl {
if (player != null) {
for (Card card : player.getGraveyard().getCards(game)) {
if (card != null) {
card.looseAllAbilities(game);
card.loseAllAbilities(game);
}
}
}

View file

@ -156,7 +156,7 @@ public interface Card extends MageObject, Ownerable {
void addAbility(Ability ability);
void looseAllAbilities(Game game);
void loseAllAbilities(Game game);
boolean addCounters(Counter counter, Ability source, Game game);

View file

@ -297,7 +297,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
}
@Override
public void looseAllAbilities(Game game) {
public void loseAllAbilities(Game game) {
CardState cardState = game.getState().getCardState(this.getId());
cardState.setLostAllAbilities(true);
cardState.getAbilities().clear();

View file

@ -1223,8 +1223,8 @@ public class Spell extends StackObjectImpl implements Card {
}
@Override
public void looseAllAbilities(Game game) {
throw new UnsupportedOperationException("Spells should not loose all abilities. Check if this operation is correct.");
public void loseAllAbilities(Game game) {
throw new UnsupportedOperationException("Spells should not lose all abilities. Check if this operation is correct.");
}
@Override