diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index a73932331..492e005a9 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -103,6 +103,9 @@ public: } else if (s == "thatmuch") { + //the value that much is a variable to be used with triggered abilities. + //ie:when ever you gain life, draw that many cards. when used in a trigger draw:thatmuch, will return the value + //that the triggered event stored in the card for "that much". intValue = 0; intValue = target->thatmuch; int checkagain = 0; diff --git a/projects/mtg/src/Player.cpp b/projects/mtg/src/Player.cpp index ccaefcac8..81b0124fa 100644 --- a/projects/mtg/src/Player.cpp +++ b/projects/mtg/src/Player.cpp @@ -121,7 +121,9 @@ int Player::gainOrLoseLife(int value) if (!value) return 0; //Don't do anything if there's no actual life change - thatmuch = abs(value); //What is thatmuch used for? + thatmuch = abs(value); //the value that much is a variable to be used with triggered abilities. + //ie:when ever you gain life, draw that many cards. when used in a trigger draw:thatmuch, will return the value + //that the triggered event stored in the card for "that much". life+=value; if (value<0) lifeLostThisTurn -= value;