Fixed a bug related to the "turnlimited" option on several ability triggers (e.g. Vampired, Discarded, etc.), restored some test of regression suite after this bug resolution.
This commit is contained in:
+3
-1
@@ -3,7 +3,9 @@
|
|||||||
## [master] (https://github.com/WagicProject/wagic/tree/master)
|
## [master] (https://github.com/WagicProject/wagic/tree/master)
|
||||||
|
|
||||||
### 03/11/21
|
### 03/11/21
|
||||||
- *Committed:* Fixed primitives, added new ability "exploits" to sacrifice a creature, added new trigger "exploited" and improved all primitives with Exploit ability, improved "tokencreated" and "sacrificed" triggers to allow "turnlimited" option, improved "flip" ability in order to keep track of current zone before flip. ([Vitty85](https://github.com/Vitty85))
|
- *Committed:* Fixed a bug related to the "turnlimited" option on several ability triggers (e.g. Vampired, Discarded, etc.), restored some test of regression suite after this bug resolution. ([Vitty85](https://github.com/Vitty85))
|
||||||
|
|
||||||
|
- *Committed:* Fixed primitives, added new ability "exploits" to sacrifice a creature, added new trigger "exploited" and improved all primitives with Exploit ability, improved "tokencreated" and "sacrificed" triggers to allow "turnlimited" option, improved "flip" ability in order to keep track of current zone before flip. https://github.com/WagicProject/wagic/commit/79e560e2b299d763fde9783a098e55b4d8a08c9d ([Vitty85](https://github.com/Vitty85))
|
||||||
|
|
||||||
### 31/10/21
|
### 31/10/21
|
||||||
- *Committed:* Fixed primitives, added new macro "_TRAINING_" for new ability "Training", added new trigger "trained", added "trainer" restriction to check if player controls an attacking creature with greater power than the current one, improved "ninjutsu" ability when the targeted card is already in play (e.g. "Olivia, Crimson Bride"), improved "flip" ability in order to add the "andability" option and in ordeer to prevent flipped auras go to graveyard, improved "andability" option for "imprint", "haunt" and "conjure" ability, improved "retarget" and "newtarget" keywords with "fromplay" option (to use with flipped auras e.g. "Vengeful Strangler"), replaced old "praidcount" and "oraidcount" with new keywords "pattackedcount" and "oattackedcount". https://github.com/WagicProject/wagic/commit/3baa6acaaf8a994b0fea3c142d14d99d20246da5 ([Vitty85](https://github.com/Vitty85))
|
- *Committed:* Fixed primitives, added new macro "_TRAINING_" for new ability "Training", added new trigger "trained", added "trainer" restriction to check if player controls an attacking creature with greater power than the current one, improved "ninjutsu" ability when the targeted card is already in play (e.g. "Olivia, Crimson Bride"), improved "flip" ability in order to add the "andability" option and in ordeer to prevent flipped auras go to graveyard, improved "andability" option for "imprint", "haunt" and "conjure" ability, improved "retarget" and "newtarget" keywords with "fromplay" option (to use with flipped auras e.g. "Vengeful Strangler"), replaced old "praidcount" and "oraidcount" with new keywords "pattackedcount" and "oattackedcount". https://github.com/WagicProject/wagic/commit/3baa6acaaf8a994b0fea3c142d14d99d20246da5 ([Vitty85](https://github.com/Vitty85))
|
||||||
|
|||||||
@@ -583,7 +583,7 @@ reinforcements_1.txt
|
|||||||
Rending_Vines.txt
|
Rending_Vines.txt
|
||||||
Rending_Vines2.txt
|
Rending_Vines2.txt
|
||||||
Replenish.txt
|
Replenish.txt
|
||||||
#resounding_roar.txt
|
resounding_roar.txt
|
||||||
resurrection.txt
|
resurrection.txt
|
||||||
resuscitate_i210.txt
|
resuscitate_i210.txt
|
||||||
restinpeace.txt
|
restinpeace.txt
|
||||||
@@ -709,7 +709,7 @@ unwilling_recruit.txt
|
|||||||
urzas_lands.txt
|
urzas_lands.txt
|
||||||
urzas_lands2.txt
|
urzas_lands2.txt
|
||||||
urzas_mine_i287.txt
|
urzas_mine_i287.txt
|
||||||
#[at]Vampired#1.txt
|
[at]Vampired#1.txt
|
||||||
vampire_bats.txt
|
vampire_bats.txt
|
||||||
vampiric_link.txt
|
vampiric_link.txt
|
||||||
vanishing.txt
|
vanishing.txt
|
||||||
|
|||||||
@@ -672,6 +672,7 @@ public:
|
|||||||
TrCardExplored(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardExplored(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -699,6 +700,7 @@ public:
|
|||||||
TrCardBoasted(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardBoasted(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -726,6 +728,7 @@ public:
|
|||||||
TrCardSurveiled(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardSurveiled(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -753,6 +756,7 @@ public:
|
|||||||
TrCardForetold(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardForetold(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -780,6 +784,7 @@ public:
|
|||||||
TrCardTrained(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardTrained(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -807,6 +812,7 @@ public:
|
|||||||
TrCardScryed(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardScryed(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -838,6 +844,7 @@ public:
|
|||||||
TrCardDungeonCompleted(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, int totaldng = 0, string playerName = "") :
|
TrCardDungeonCompleted(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, int totaldng = 0, string playerName = "") :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn), totaldng(totaldng), playerName(playerName)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn), totaldng(totaldng), playerName(playerName)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -871,6 +878,7 @@ public:
|
|||||||
TrCardRolledDie(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, int rollresult = 0, string playerName = "") :
|
TrCardRolledDie(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, int rollresult = 0, string playerName = "") :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn), rollresult(rollresult), playerName(playerName)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn), rollresult(rollresult), playerName(playerName)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -906,6 +914,7 @@ public:
|
|||||||
TrCardFlippedCoin(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, int flipresult = -1, string playerName = "") :
|
TrCardFlippedCoin(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, int flipresult = -1, string playerName = "") :
|
||||||
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn), flipresult(flipresult), playerName(playerName)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn), flipresult(flipresult), playerName(playerName)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -940,8 +949,9 @@ public:
|
|||||||
bool limitOnceATurn;
|
bool limitOnceATurn;
|
||||||
int triggeredTurn;
|
int triggeredTurn;
|
||||||
TrTokenCreated(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrTokenCreated(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source,once, tc)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -967,8 +977,9 @@ public:
|
|||||||
bool limitOnceATurn;
|
bool limitOnceATurn;
|
||||||
int triggeredTurn;
|
int triggeredTurn;
|
||||||
TrCardSacrificed(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardSacrificed(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -1008,8 +1019,9 @@ public:
|
|||||||
bool limitOnceATurn;
|
bool limitOnceATurn;
|
||||||
int triggeredTurn;
|
int triggeredTurn;
|
||||||
TrCardExploited(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
TrCardExploited(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -1050,8 +1062,9 @@ public:
|
|||||||
int triggeredTurn;
|
int triggeredTurn;
|
||||||
bool cycledTrigger;
|
bool cycledTrigger;
|
||||||
TrCardDiscarded(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, bool cycledTrigger = false) :
|
TrCardDiscarded(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, bool once = false, bool limitOnceATurn = false, bool cycledTrigger = false) :
|
||||||
Trigger(observer, id, source, once, tc),cycledTrigger(cycledTrigger)
|
Trigger(observer, id, source, once, tc), limitOnceATurn(limitOnceATurn), cycledTrigger(cycledTrigger)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -1204,8 +1217,9 @@ public:
|
|||||||
bool limitOnceATurn;
|
bool limitOnceATurn;
|
||||||
int triggeredTurn;
|
int triggeredTurn;
|
||||||
TrVampired(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, TargetChooser * fromTc = NULL, bool once = false, bool limitOnceATurn = false) :
|
TrVampired(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, TargetChooser * fromTc = NULL, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), fromTc(fromTc)
|
Trigger(observer, id, source, once, tc), fromTc(fromTc), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
@@ -1246,8 +1260,9 @@ public:
|
|||||||
bool limitOnceATurn;
|
bool limitOnceATurn;
|
||||||
int triggeredTurn;
|
int triggeredTurn;
|
||||||
TrTargeted(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, TargetChooser * fromTc = NULL, int type = 0, bool once = false, bool limitOnceATurn = false) :
|
TrTargeted(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, TargetChooser * fromTc = NULL, int type = 0, bool once = false, bool limitOnceATurn = false) :
|
||||||
Trigger(observer, id, source, once, tc), fromTc(fromTc), type(type)
|
Trigger(observer, id, source, once, tc), fromTc(fromTc), type(type), limitOnceATurn(limitOnceATurn)
|
||||||
{
|
{
|
||||||
|
triggeredTurn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int triggerOnEventImpl(WEvent * event)
|
int triggerOnEventImpl(WEvent * event)
|
||||||
|
|||||||
Reference in New Issue
Block a user