From a9b42127d1bc0ad4aae542a6fc2b5b7c26f13459 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Wed, 15 Feb 2017 07:30:13 +0800 Subject: [PATCH] added mypos mypos returns cards zpos (zone position) --- projects/mtg/include/AllAbilities.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 6c6140495..b5bc6110a 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -997,6 +997,10 @@ private: intValue += card->controller()->game->inPlay->cards[j]->power; } } + else if (s == "mypos") + {//hand,exile,grave & library only (library zpos is inverted so the recent one is always the top) + intValue = card->zpos; + } else if (s == "revealedp") { if (card->revealedLast)