forked from External/mage
Bugfixes for Kratos, God of War (#14001)
This commit is contained in:
parent
e8c8b72a07
commit
4a41b0415a
1 changed files with 8 additions and 5 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue