Fix damage triggers (#12033)

* Fix DealtDamageAttachedTriggeredAbility and update test

* Fix AegarTheFreezingFlameTriggeredAbility and add test

* fix enum reference for DealtDamageAttachedTriggeredAbility

* fix Pious Warrior

* Fix souls of the faultless

* fix Stuffy Doll

* Fix Vengeful Pharoah and add test

* fix Wall of Essence

* fix Wall of Souls

* fix Rite of Passage and add test

* incorporate simple fixes - these cards use no methods that aren't re-implemented in DamagedBatchForOnePermanentEvent

* fix Chandra's Spitfire

* fix Darien, King of Kjeldor

* fix Jace, Cunning Castaway

* fix Mindblade Render

* fix Popular Entertainer

* fix Swarmborn Giant

* fix The Raven's Warning

* fix War Elemental

* fix Wildfire Elemental

* make simple player damage trigger fixes

* Add isCombatDamage to DamagedBatchForOnePermanentEvent and utilize in trigger fixes

* fix Fall of Cair Andros

* fix Toralf, God of Fury

* optimize some imports
This commit is contained in:
jimga150 2024-04-04 22:16:44 -04:00 committed by GitHub
parent ac8722f707
commit 525e013ebd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 386 additions and 261 deletions

View file

@ -5,4 +5,10 @@ public class DamagedBatchForOnePermanentEvent extends BatchEvent<DamagedPermanen
public DamagedBatchForOnePermanentEvent(DamagedPermanentEvent firstEvent) {
super(GameEvent.EventType.DAMAGED_BATCH_FOR_ONE_PERMANENT, true, firstEvent);
}
public boolean isCombatDamage() {
return getEvents()
.stream()
.anyMatch(DamagedEvent::isCombatDamage);
}
}