edo9300 / ygopro-core

ygopro script engine.
Other
45 stars 31 forks source link

Card.IsLinked behaves incorrectly #98

Closed kevinlul closed 4 years ago

kevinlul commented 4 years ago

Linked cards to the specified card are identified incorrectly. For example, in the Pentestag puzzle, monsters linked to Pentestag fail to inflict piercing battle damage.

AlphaKretin commented 4 years ago

Specifically, a mistake in the implementation for Link Spells requires that a card be of TYPE_LINK and in the monster zone, rather than or (because a non-Link Spell/Trap cannot be Linked).

AlphaKretin commented 4 years ago

Fixed in https://github.com/edo9300/ygopro-core/commit/87af388855c782c4fcdfd198bdff38d7083b078b