From: H.G.Muller Date: Fri, 24 Jul 2015 16:10:11 +0000 (+0200) Subject: Fix counter strike against Lion with HF and SE X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=12ca3b5e2047513cecc01b46a4bb84b2189a117a;p=hachu.git Fix counter strike against Lion with HF and SE A hit-and-run capture of by a Falcon or Eagle was not recognized as a counter strike against a Lion if it was one, as only the regular victim was tested for lionhood. --- diff --git a/hachu.c b/hachu.c index f1db2ee..2d63349 100644 --- a/hachu.c +++ b/hachu.c @@ -2195,7 +2195,7 @@ attacks += 2*bsize; MapFromScratch(attacks); // for as long as incremental update does not work. //if(flag & depth >= 0) printf("%2d:%d mapped %d/%d %s\n", depth, iterDep, curMove, msp, MoveToText(moveStack[curMove], 0)); //if(PATH) pmap(attacks, stm); - if(chuFlag && p[tb.victim].value == LVAL) {// verify legality of Lion capture in Chu Shogi + if(chuFlag && (p[tb.victim].value == LVAL || p[tb.epVictim[0]].value == LVAL)) {// verify legality of Lion capture in Chu Shogi score = 0; if(p[tb.piece].value == LVAL) { // Ln x Ln: can make Ln 'vulnerable' (if distant and not through intemediate > GB) if(dist[tb.from-tb.to] != 1 && attacks[2*tb.to + stm] && p[tb.epVictim[0]].value <= 50)