edo9300 / ygopro-core

ygopro script engine.
Other
45 stars 31 forks source link

GetLink returns 0 if the card is in the S/T Zone #88

Closed NaimSantos closed 5 years ago

NaimSantos commented 5 years ago

If Borreload Savage Dragon equips a link monster to itself, it does not get any counters. The GetLink function returns 0 if the card is in the S/T Zone, probably related with the changes due to the implementation of Link Spells

AlphaKretin commented 5 years ago

It sounds like we could use a function like GetOriginalLink(), which doesn’t seem to exist.

kevinlul commented 5 years ago

To investigate

https://github.com/edo9300/ygopro-core/commit/fd6bb84eda625a022d735cc6c1f40c7a04d37f8b https://github.com/edo9300/ygopro-core/commit/3317b71b08d5af4057e1311a717d9bd9ed799802

NaimSantos commented 5 years ago

Do we have any reply about this from @edo9300 ? The problem exist in the client and 33 cards and the link summon procedure are using the GetLink function.

edo9300 commented 5 years ago

Fixed in https://github.com/edo9300/ygopro-core/commit/8b684c26449305faebc3f2746954e10df35c2a5a