Merge branch 'fixdroid' into 'master'

hotfix for Android

See merge request core-developers/forge!4830
This commit is contained in:
Tim Mocny
2021-06-05 11:02:46 +00:00

View File

@@ -461,8 +461,8 @@ public class VAssignCombatDamage extends FDialog {
}
else {
lethalDamage = Math.max(0, source.getLethalDamage());
if (card.getCurrentState().getType().isPlaneswalker()) {
lethalDamage = Integer.valueOf(card.getCurrentState().getLoyalty());
if (source.getCurrentState().getType().isPlaneswalker()) {
lethalDamage = Integer.valueOf(source.getCurrentState().getLoyalty());
} else if (attackerHasDeathtouch) {
lethalDamage = Math.min(lethalDamage, 1);
}