mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Ib Halfheart, Goblin Tactician - Fixed that the blocking creatures didn't get the 4 damage.
This commit is contained in:
parent
cb6cc62ed4
commit
7269660ff1
1 changed files with 6 additions and 6 deletions
|
@ -125,13 +125,13 @@ class IbHalfheartGoblinTacticianEffect extends OneShotEffect {
|
|||
// it can't be sacrificed, nothing happens
|
||||
return true;
|
||||
}
|
||||
if (blockedCreature.sacrifice(source.getSourceId(), game)) {
|
||||
Set<UUID> blockingCreatures = new HashSet<>();
|
||||
for (CombatGroup combatGroup : game.getCombat().getGroups()) {
|
||||
if (combatGroup.getAttackers().contains(blockedCreature.getId())) {
|
||||
blockingCreatures.addAll(combatGroup.getBlockers());
|
||||
}
|
||||
Set<UUID> blockingCreatures = new HashSet<>();
|
||||
for (CombatGroup combatGroup : game.getCombat().getGroups()) {
|
||||
if (combatGroup.getAttackers().contains(blockedCreature.getId())) {
|
||||
blockingCreatures.addAll(combatGroup.getBlockers());
|
||||
}
|
||||
}
|
||||
if (blockedCreature.sacrifice(source.getSourceId(), game)) {
|
||||
for (UUID blockerId : blockingCreatures) {
|
||||
Permanent blockingCreature = game.getPermanent(blockerId);
|
||||
if (blockingCreature != null) {
|
||||
|
|
Loading…
Reference in a new issue