mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
[FIN] Implement Ancient Adamantoise (#13670)
* [FIN] Implement Ancient Adamantoise * change effect type * add test
This commit is contained in:
parent
3d85682535
commit
e1f4e9db59
5 changed files with 188 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue