mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
FDN New Combat Rules (#13279)
* Remove all combat ordering code * Use MultiAmount division for damage * Remove damage selection division skipping in tests * Fix Banding, Multi-block, add tests * Fix test * Fix random iteration order, fix new tests * Add more info to choose dialog, make MultiAmountType class instead of enum * Don't prompt for trample damage assignment if none possible * Mark "Assign default damage" on tests, minor other test improvements
This commit is contained in:
parent
f53e43fd46
commit
969ffa1c98
36 changed files with 323 additions and 503 deletions
|
|
@ -13,10 +13,8 @@ import mage.constants.MultiAmountType;
|
|||
import mage.constants.Outcome;
|
||||
import mage.constants.RangeOfInfluence;
|
||||
import mage.game.Game;
|
||||
import mage.game.combat.CombatGroup;
|
||||
import mage.game.draft.Draft;
|
||||
import mage.game.match.Match;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.tournament.Tournament;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
|
|
@ -287,24 +285,6 @@ public class ComputerPlayerControllableProxy extends ComputerPlayer7 {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID chooseAttackerOrder(java.util.List<Permanent> attackers, Game game) {
|
||||
if (isUnderMe(game)) {
|
||||
return super.chooseAttackerOrder(attackers, game);
|
||||
} else {
|
||||
return getControllingPlayer(game).chooseAttackerOrder(attackers, game);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID chooseBlockerOrder(java.util.List<Permanent> blockers, CombatGroup combatGroup, java.util.List<UUID> blockerOrder, Game game) {
|
||||
if (isUnderMe(game)) {
|
||||
return super.chooseBlockerOrder(blockers, combatGroup, blockerOrder, game);
|
||||
} else {
|
||||
return getControllingPlayer(game).chooseBlockerOrder(blockers, combatGroup, blockerOrder, game);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAmount(int min, int max, String message, Game game) {
|
||||
if (isUnderMe(game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue