curiosity...
2/1/2007 You draw one card each time the enchanted creature damages the opponent. This is not one card per point of damage. 2/1/2007 If put on your opponent's creature, you do not draw a card when that creature damages you. The creature has to damage your opponent in order to have this work. 2/1/2007 Drawing a card is optional. If you forget, you can't go back later and do it, even if it is something you normally do. 9/22/2011 "You" refers to the controller of Curiosity, which may be different from the controller of the enchanted creature."An opponent" refers to an opponent of Curiosity's controller. 9/22/2011 Any damage dealt by the enchanted creature to an opponent will cause Curiosity to trigger, not just combat damage. 9/22/2011 Curiosity doesn't trigger if the enchanted creature deals damage to a planeswalker controlled by an opponent.
This commit is contained in:
@@ -2,6 +2,15 @@
|
|||||||
#DESC: Tests whether Curiosity works correctly
|
#DESC: Tests whether Curiosity works correctly
|
||||||
#DESC: when cast on an opponent's creature
|
#DESC: when cast on an opponent's creature
|
||||||
#DESC: http://code.google.com/p/wagic/issues/detail?id=217
|
#DESC: http://code.google.com/p/wagic/issues/detail?id=217
|
||||||
|
#
|
||||||
|
#revised...10-22-2015...kevlahnota
|
||||||
|
#2/1/2007 You draw one card each time the enchanted creature damages the opponent. This is not one card per point of damage.
|
||||||
|
#2/1/2007 If put on your opponent's creature, you do not draw a card when that creature damages you. The creature has to damage your opponent in order to have this work.
|
||||||
|
#2/1/2007 Drawing a card is optional. If you forget, you can't go back later and do it, even if it is something you normally do.
|
||||||
|
#9/22/2011 "You" refers to the controller of Curiosity, which may be different from the controller of the enchanted creature."An opponent" refers to an opponent of Curiosity's controller.
|
||||||
|
#9/22/2011 Any damage dealt by the enchanted creature to an opponent will cause Curiosity to trigger, not just combat damage.
|
||||||
|
#9/22/2011 Curiosity doesn't trigger if the enchanted creature deals damage to a planeswalker controlled by an opponent.
|
||||||
|
#
|
||||||
[INIT]
|
[INIT]
|
||||||
firstmain
|
firstmain
|
||||||
[PLAYER1]
|
[PLAYER1]
|
||||||
@@ -29,7 +38,7 @@ next
|
|||||||
combatend
|
combatend
|
||||||
[PLAYER1]
|
[PLAYER1]
|
||||||
inplay:Curiosity
|
inplay:Curiosity
|
||||||
hand:Island
|
library:Island
|
||||||
life:14
|
life:14
|
||||||
[PLAYER2]
|
[PLAYER2]
|
||||||
inplay:Craw Wurm
|
inplay:Craw Wurm
|
||||||
|
|||||||
@@ -1300,7 +1300,8 @@ public:
|
|||||||
bool sourceUntapped;
|
bool sourceUntapped;
|
||||||
bool limitOnceATurn;
|
bool limitOnceATurn;
|
||||||
int triggeredTurn;
|
int triggeredTurn;
|
||||||
bool thiscontroller, thisopponent;
|
bool thiscontroller;
|
||||||
|
bool thisopponent;
|
||||||
TrDamaged(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, TargetChooser * fromTc = NULL, int type = 0,bool sourceUntapped = false,bool limitOnceATurn = false,bool once = false, bool thiscontroller = false, bool thisopponent = false) :
|
TrDamaged(GameObserver* observer, int id, MTGCardInstance * source, TargetChooser * tc, TargetChooser * fromTc = NULL, int type = 0,bool sourceUntapped = false,bool limitOnceATurn = false,bool once = false, bool thiscontroller = false, bool thisopponent = false) :
|
||||||
Trigger(observer, id, source, once, tc), fromTc(fromTc), type(type) , sourceUntapped(sourceUntapped),limitOnceATurn(limitOnceATurn),thiscontroller(thiscontroller),thisopponent(thisopponent)
|
Trigger(observer, id, source, once, tc), fromTc(fromTc), type(type) , sourceUntapped(sourceUntapped),limitOnceATurn(limitOnceATurn),thiscontroller(thiscontroller),thisopponent(thisopponent)
|
||||||
{
|
{
|
||||||
@@ -1321,12 +1322,11 @@ public:
|
|||||||
if (type == 2 && e->damage->typeOfDamage == Damage::DAMAGE_COMBAT) return 0;
|
if (type == 2 && e->damage->typeOfDamage == Damage::DAMAGE_COMBAT) return 0;
|
||||||
if (e->damage->target->type_as_damageable == Damageable::DAMAGEABLE_PLAYER)
|
if (e->damage->target->type_as_damageable == Damageable::DAMAGEABLE_PLAYER)
|
||||||
{
|
{
|
||||||
Player * p = (Player *) e->damage->target;
|
|
||||||
if(thiscontroller)
|
if(thiscontroller)
|
||||||
if(p != source->controller())
|
if(e->damage->target != (Damageable *)source->controller())
|
||||||
return 0;
|
return 0;
|
||||||
if(thisopponent)
|
if(thisopponent)
|
||||||
if(p == source->controller())
|
if(e->damage->target == (Damageable *)source->controller())
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
e->damage->target->thatmuch = e->damage->damage;
|
e->damage->target->thatmuch = e->damage->damage;
|
||||||
|
|||||||
Reference in New Issue
Block a user