2 changes wrapped my last commit incorrectly, the fix for @targeted...and i added a conditional to keep the "combat bump" hint out of test suite, i found out it slowed test suite down considerably
This commit is contained in:
@@ -4075,6 +4075,8 @@ TriggeredAbility::TriggeredAbility(int id, MTGCardInstance * card) :
|
||||
|
||||
int TriggeredAbility::receiveEvent(WEvent * e)
|
||||
{
|
||||
if (triggerOnEvent(e))
|
||||
{
|
||||
if(dynamic_cast<WEventTarget*>(e))
|
||||
{
|
||||
//@targetted trigger as per mtg rules is a state based trigger
|
||||
@@ -4082,8 +4084,6 @@ int TriggeredAbility::receiveEvent(WEvent * e)
|
||||
resolve();
|
||||
return 1;
|
||||
}
|
||||
if (triggerOnEvent(e))
|
||||
{
|
||||
fireAbility();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user