[AFR] Implemented You Come to a River

This commit is contained in:
Evan Kranzler 2021-06-30 08:51:46 -04:00
parent aad519f8cb
commit 4f38338fa6
9 changed files with 70 additions and 5 deletions

View file

@ -467,13 +467,21 @@ public interface Ability extends Controllable, Serializable {
Ability setAbilityWord(AbilityWord abilityWord);
/**
* Set flavor word for whole ability (if you need flavor word for choices then call it from mode)
* Sets flavor word for whole ability
*
* @param flavorWord
* @return
*/
Ability withFlavorWord(String flavorWord);
/**
* Sets flavor word for first mode
*
* @param flavorWord
* @return
*/
Ability withFirstModeFlavorWord(String flavorWord);
/**
* Creates the message about the ability casting/triggering/activating to
* post in the game log before the ability resolves.

View file

@ -1078,6 +1078,12 @@ public abstract class AbilityImpl implements Ability {
return this;
}
@Override
public Ability withFirstModeFlavorWord(String flavorWord) {
this.modes.getMode().withFlavorWord(flavorWord);
return this;
}
@Override
public String getGameLogMessage(Game game) {
if (game.isSimulation()) {

View file

@ -501,6 +501,11 @@ public class StackAbility extends StackObjectImpl implements Ability {
throw new UnsupportedOperationException("Not supported.");
}
@Override
public Ability withFirstModeFlavorWord(String flavorWord) {
throw new UnsupportedOperationException("Not supported.");
}
@Override
public boolean activateAlternateOrAdditionalCosts(MageObject sourceObject, boolean noMana, Player controller, Game game) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.