J :
* Fix almost all tests. * This version "nearly" works.
This commit is contained in:
@@ -34,7 +34,14 @@ std::ostream& WEvent::toString(std::ostream& out) const
|
||||
}
|
||||
std::ostream& WEventZoneChange::toString(std::ostream& out) const
|
||||
{
|
||||
return out << "EVENT " << *card << " : " << *from << " → " << *to;
|
||||
return out << "ZONEEVENT " << *card << " : " << *from << " -> " << *to;
|
||||
}
|
||||
std::ostream& WEventDamage::toString(std::ostream& out) const
|
||||
{
|
||||
if (MTGCardInstance* m = dynamic_cast<MTGCardInstance*>(damage->target))
|
||||
return out << "DAMAGEEVENT " << damage->damage << " >> " << *m;
|
||||
else
|
||||
return out << "DAMAGEEVENT " << damage->damage << " >> " << damage->target;
|
||||
}
|
||||
std::ostream& operator<<(std::ostream& out, const WEvent& m)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user