Bugfixes for Kratos, God of War (#14001)

This commit is contained in:
Riley 2025-10-14 15:53:31 -07:00 committed by GitHub
parent e8c8b72a07
commit 4a41b0415a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,10 +39,13 @@ public final class KratosGodOfWar extends CardImpl {
this.addAbility(DoubleStrikeAbility.getInstance()); this.addAbility(DoubleStrikeAbility.getInstance());
// All creatures have haste. // All creatures have haste.
this.addAbility(new SimpleStaticAbility(new GainAbilityAllEffect( this.addAbility(
HasteAbility.getInstance(), Duration.WhileControlled, new SimpleStaticAbility(
StaticFilters.FILTER_PERMANENT_CREATURE new GainAbilityAllEffect(
).setText("all creatures have haste"))); HasteAbility.getInstance(), Duration.WhileOnBattlefield,
StaticFilters.FILTER_PERMANENT_CREATURES
).setText("all creatures have haste")
));
// At the beginning of each player's end step, Kratos deals damage to that player equal to the number of creatures that player controls that didn't attack this turn. // At the beginning of each player's end step, Kratos deals damage to that player equal to the number of creatures that player controls that didn't attack this turn.
this.addAbility(new BeginningOfEndStepTriggeredAbility( this.addAbility(new BeginningOfEndStepTriggeredAbility(
@ -89,7 +92,7 @@ class KratosGodOfWarEffect extends OneShotEffect {
if (player == null) { if (player == null) {
return false; return false;
} }
int count = game.getBattlefield().count(filter, source.getControllerId(), source, game); int count = game.getBattlefield().count(filter, game.getActivePlayerId(), source, game);
return count > 0 && player.damage(count, source, game) > 0; return count > 0 && player.damage(count, source, game) > 0;
} }
} }