Improved Word of Command turn control handling

This commit is contained in:
L_J 2018-06-04 01:32:17 +02:00 committed by GitHub
parent b7c6afc66d
commit 492c5ab63e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 57 deletions

View file

@ -36,7 +36,13 @@ public class SpellStack extends ArrayDeque<StackObject> {
StackObject top = null;
try {
top = this.peek();
top.resolve(game);
Spell topSpell = getSpell(top.getId());
if (topSpell != null) {
top.resolve(game);
game.resetControlAfterSpellResolve(topSpell);
} else {
top.resolve(game);
}
} finally {
if (top != null) {
if (contains(top)) {