forked from External/mage
Merge pull request #4993 from Zzooouhh/Zzooouhh-woc
Implemented Word of Command (presumably buggy)
This commit is contained in:
commit
0d9f8ad19a
16 changed files with 443 additions and 17 deletions
|
|
@ -37,10 +37,11 @@ public class SpellStack extends ArrayDeque<StackObject> {
|
|||
try {
|
||||
top = this.peek();
|
||||
top.resolve(game);
|
||||
game.resetControlAfterSpellResolve(top.getId());
|
||||
} finally {
|
||||
if (top != null) {
|
||||
if (contains(top)) {
|
||||
logger.warn("StackObject was still on the stack after resoving" + top.getName());
|
||||
logger.warn("StackObject was still on the stack after resolving" + top.getName());
|
||||
this.remove(top, game);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue