lib/bioshogi/soldier_walker.rb in bioshogi-0.0.14 vs lib/bioshogi/soldier_walker.rb in bioshogi-0.0.15

- old
+ new

@@ -76,10 +76,10 @@ # 死に駒にならないのであれば有効 soldier = origin_soldier.merge(place: place) # 成れるなら成る - if origin_soldier.next_promotable?(soldier.place) + if origin_soldier.tsugini_nareru_on?(soldier.place) move_hand = Hand::Move.create(soldier: soldier.merge(promoted: true), origin_soldier: origin_soldier, captured_soldier: captured_soldier) success = piece_store_core(container, move_hand, yielder, options) if success if options[:promoted_only] # 成と不成の両方がある(かもしれない)場合は成の方だけ生成する