Skip to content

Commit

Permalink
bug fix to Animal Companion
Browse files Browse the repository at this point in the history
  • Loading branch information
oyachai committed Jun 24, 2015
1 parent 7eb3671 commit d9485b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public boolean canBeUsedOn(PlayerSide playerSide, Minion minion, BoardModel boar
* Use the card on the given target
* Summons either Huffer, Leokk, or Misha
*
* @param side
* @param originSide
* @param boardState The BoardState before this card has performed its action. It will be manipulated and returned.
* @return The boardState is manipulated and returned
*/
Expand All @@ -72,7 +72,8 @@ public Collection<HearthTreeNode> createChildren(PlayerSide originSide, int orig
newState = new HearthTreeNode(boardState.data_.deepCopy());
newState.data_.modelForSide(originSide).getHand().remove(originIndex);
newState = minion.summonMinionAtEnd(originSide, newState, false);
children.add(newState);
if (newState != null)
children.add(newState);
}

return children;
Expand Down

0 comments on commit d9485b3

Please sign in to comment.