From c2d8fb32ecc0cae6432c046e0dc960343ade49f9 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 3 Jun 2016 00:20:43 +0200 Subject: * vulnerability determination fix --- src/ParScore.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ParScore.cs') diff --git a/src/ParScore.cs b/src/ParScore.cs index b1561fc..a3705fd 100644 --- a/src/ParScore.cs +++ b/src/ParScore.cs @@ -121,8 +121,9 @@ namespace BCDD { return nsPlaying ? nsHighest.Validate() : ewHighest.Validate(); } - bool defenseVulnerability = this.determineVulnerability(vulnerability, nsPlaying ? 'E' : 'N'); ParContract highest = nsHighest.Higher(ewHighest) ? nsHighest : ewHighest; + nsPlaying = ('N'.Equals(highest.Declarer) || 'S'.Equals(highest.Declarer)); + bool defenseVulnerability = this.determineVulnerability(vulnerability, nsPlaying ? 'E' : 'N'); ParContract highestDefense = highest.GetDefense(ddTable, defenseVulnerability); if (highestDefense != null) { -- cgit v1.2.3