mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Regeneration Rework:
- Regenerate or RegenerateAll does create an Effect in Command which does replace Destroy if possible - Trigger Regenerated will be added to the Effect if something does care about "regenerated that way" - new Regeneration Api is the internal effect that does handle the actual regeneration - ReplaceDestroy has Section to handle if Regeneration is possible - CardShields are removed with the option in PlayerController
This commit is contained in:
@@ -1569,18 +1569,6 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CardShields chooseRegenerationShield(final Card c) {
|
||||
if (c.getShieldCount() < 2) {
|
||||
return Iterables.getFirst(c.getShields(), null);
|
||||
}
|
||||
final List<CardShields> shields = Lists.newArrayList();
|
||||
for (final CardShields shield : c.getShields()) {
|
||||
shields.add(shield);
|
||||
}
|
||||
return getGui().one("Choose a regeneration shield:", shields);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PaperCard> chooseCardsYouWonToAddToDeck(final List<PaperCard> losses) {
|
||||
return getGui().many("Select cards to add to your deck", "Add these to my deck", 0, losses.size(), losses,
|
||||
|
||||
Reference in New Issue
Block a user