[PIP] Implement Strong, the Brutish Thespian (#13359)

This commit is contained in:
4825764518 2025-02-17 21:20:04 -05:00 committed by GitHub
parent 91a648c50d
commit ecbab0da9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 93 additions and 6 deletions

View file

@ -16,6 +16,7 @@ import mage.counters.CounterType;
import mage.filter.StaticFilters;
import mage.game.Game;
import mage.game.command.Emblem;
import mage.game.events.GameEvent;
import mage.players.Player;
/**
@ -106,8 +107,13 @@ class RadiationEffect extends OneShotEffect {
Cards milled = player.millCards(amount, source, game);
int countNonLand = milled.count(StaticFilters.FILTER_CARD_NON_LAND, player.getId(), source, game);
if (countNonLand > 0) {
// TODO: support gaining life instead with [[Strong, the Brutish Thespian]]
player.loseLife(countNonLand, game, source, false);
GameEvent event = new GameEvent(GameEvent.EventType.RADIATION_GAIN_LIFE, null, source, player.getId(), amount, false);
if (game.replaceEvent(event)) {
player.gainLife(countNonLand, game, source);
} else {
player.loseLife(countNonLand, game, source, false);
}
player.loseCounters(CounterType.RAD.getName(), countNonLand, source, game);
}
return true;

View file

@ -672,6 +672,9 @@ public class GameEvent implements Serializable {
playerId player who gave the gift
*/
GAVE_GIFT,
/* rad counter life loss/gain effect
*/
RADIATION_GAIN_LIFE,
// custom events - must store some unique data to track
CUSTOM_EVENT;