mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed AF Fight not checking for fighters on battlefield.
This commit is contained in:
@@ -163,7 +163,7 @@ public abstract class AllZoneUtil {
|
|||||||
* @return a boolean.
|
* @return a boolean.
|
||||||
*/
|
*/
|
||||||
public static boolean isCardInPlay(final Card card) {
|
public static boolean isCardInPlay(final Card card) {
|
||||||
return AllZoneUtil.getCardsIn(ZoneType.Battlefield).contains(card);
|
return card.getController().getCardsIn(ZoneType.Battlefield).contains(card);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1754,7 +1754,8 @@ public class AbilityFactoryDealDamage {
|
|||||||
fighter2 = tgts.get(1);
|
fighter2 = tgts.get(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fighter1 == null || fighter2 == null) {
|
if (fighter1 == null || fighter2 == null || !AllZoneUtil.isCardInPlay(fighter1)
|
||||||
|
|| !AllZoneUtil.isCardInPlay(fighter2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user