mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
* Melee - fixed that it don't triggers on unblocked attacks and don't untap it;
This commit is contained in:
parent
dc04092fce
commit
488ed9ee00
1 changed files with 2 additions and 1 deletions
|
|
@ -555,7 +555,8 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
}
|
||||
for (UUID attackingCreatureID : game.getCombat().getAttackers()) {
|
||||
Permanent permanent = game.getPermanent(attackingCreatureID);
|
||||
if (permanent != null && permanent.getBlocking() == 0) {
|
||||
CombatGroup group = game.getCombat().findGroup(attackingCreatureID);
|
||||
if (permanent != null && group != null && !group.getBlocked()) {
|
||||
game.fireEvent(GameEvent.getEvent(EventType.UNBLOCKED_ATTACKER, attackingCreatureID, attackingPlayerId));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue