* Melee - fixed that it don't triggers on unblocked attacks and don't untap it;

This commit is contained in:
Oleg Agafonov 2019-04-28 11:12:39 +04:00
parent dc04092fce
commit 488ed9ee00

View file

@ -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));
}
}