From e6775c0c1a12fd268dd594a05d8f3369ed82cd1d Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Tue, 31 Jan 2012 18:18:56 +0000 Subject: [PATCH] added playerpoisoncount and opponentpoisoncount word variables...this was the easiest way to add support for the remaining cards which cared about poison counters. --- projects/mtg/include/AllAbilities.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 484591b05..5eefb1ccf 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -183,6 +183,14 @@ private: { intValue = target->controller()->opponent()->damageCount; } + else if (s == "playerpoisoncount") + { + intValue = target->controller()->poisonCount; + } + else if (s == "opponentpoisoncount") + { + intValue = target->controller()->opponent()->poisonCount; + } else if (s == "opponentlifetotal") { intValue = target->controller()->opponent()->life;