mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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.
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
if (fighter1 == null || fighter2 == null) {
|
||||
if (fighter1 == null || fighter2 == null || !AllZoneUtil.isCardInPlay(fighter1)
|
||||
|| !AllZoneUtil.isCardInPlay(fighter2)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user