mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
parent
0bdbd36d2d
commit
84ec743b07
1 changed files with 2 additions and 1 deletions
|
@ -433,7 +433,8 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
// check if a creature has to attack
|
||||
for (Map.Entry<RequirementEffect, Set<Ability>> entry : game.getContinuousEffects().getApplicableRequirementEffects(creature, false, game).entrySet()) {
|
||||
RequirementEffect effect = entry.getKey();
|
||||
if (effect.mustAttack(game)) {
|
||||
if (effect.mustAttack(game)
|
||||
&& checkAttackRestrictions(player, game)) { // needed for Goad Effect
|
||||
mustAttack = true;
|
||||
for (Ability ability : entry.getValue()) {
|
||||
UUID defenderId = effect.mustAttackDefender(ability, game);
|
||||
|
|
Loading…
Reference in a new issue