* Ib Halfheart, Goblin Tactician - Fixed that the blocking creatures didn't get the 4 damage.

This commit is contained in:
LevelX2 2014-09-03 15:32:09 +02:00
parent cb6cc62ed4
commit 7269660ff1

View file

@ -125,13 +125,13 @@ class IbHalfheartGoblinTacticianEffect extends OneShotEffect {
// it can't be sacrificed, nothing happens // it can't be sacrificed, nothing happens
return true; return true;
} }
if (blockedCreature.sacrifice(source.getSourceId(), game)) { Set<UUID> blockingCreatures = new HashSet<>();
Set<UUID> blockingCreatures = new HashSet<>(); for (CombatGroup combatGroup : game.getCombat().getGroups()) {
for (CombatGroup combatGroup : game.getCombat().getGroups()) { if (combatGroup.getAttackers().contains(blockedCreature.getId())) {
if (combatGroup.getAttackers().contains(blockedCreature.getId())) { blockingCreatures.addAll(combatGroup.getBlockers());
blockingCreatures.addAll(combatGroup.getBlockers());
}
} }
}
if (blockedCreature.sacrifice(source.getSourceId(), game)) {
for (UUID blockerId : blockingCreatures) { for (UUID blockerId : blockingCreatures) {
Permanent blockingCreature = game.getPermanent(blockerId); Permanent blockingCreature = game.getPermanent(blockerId);
if (blockingCreature != null) { if (blockingCreature != null) {