mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Fixed a bug that damage was wrongly still assigned to players during combat that already left the game.
This commit is contained in:
parent
a3a6760f4a
commit
ff6d79829e
3 changed files with 48 additions and 10 deletions
|
|
@ -399,7 +399,9 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
|
|||
}
|
||||
} else {
|
||||
Player defender = game.getPlayer(defenderId);
|
||||
defender.damage(amount, attacker.getId(), game, true, true);
|
||||
if (defender.isInGame()) {
|
||||
defender.damage(amount, attacker.getId(), game, true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue