edo9300 / ygopro-core

ygopro script engine.
Other
45 stars 31 forks source link

Fix field::negate_chain #147

Closed NaimSantos closed 1 year ago

NaimSantos commented 1 year ago

If a Spell/Trap card that is going to have its activation negated leaves the field but it is put back in the S/T zone before this function (field::negate_chain) is executed, it should not be sent to the GY when the negation occurs because it is treated as a different copy of the card. Currently it will be sent to the GY, which is wrong

This pull requests adds an extra check for the chain relation before setting the status to the card