[FIN] Implement Ancient Adamantoise (#13670)

* [FIN] Implement Ancient Adamantoise

* change effect type

* add test
This commit is contained in:
Evan Kranzler 2025-05-27 21:56:07 -04:00 committed by GitHub
parent 3d85682535
commit e1f4e9db59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 188 additions and 2 deletions

View file

@ -173,7 +173,7 @@ public class GameEvent implements Serializable {
amount amount of life loss
flag true = from combat damage - other from non combat damage
*/
LOSE_LIFE, LOST_LIFE,
/* LOST_LIFE_BATCH_FOR_ONE_PLAYER
combines all life lost events for a player to a single batch (event)
@ -509,6 +509,7 @@ public class GameEvent implements Serializable {
combines all permanent damage events to a single batch (event) and split it per damaged permanent
*/
DAMAGED_BATCH_FOR_ONE_PERMANENT(true),
REMOVE_DAMAGE_EOT,
DESTROY_PERMANENT,
/* DESTROYED_PERMANENT

View file

@ -524,7 +524,11 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override
public void endOfTurn(Game game) {
this.damage = 0;
if (!game.replaceEvent(GameEvent.getEvent(
EventType.REMOVE_DAMAGE_EOT, this.getId(), null, this.getControllerId()
))) {
this.damage = 0;
}
this.timesLoyaltyUsed = 0;
this.turnsOnBattlefield++;
this.deathtouched = false;