forked from External/mage
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:
parent
ac8722f707
commit
525e013ebd
40 changed files with 386 additions and 261 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue