ProjectIgnis / CardScripts

Project Ignis card script libraries and canonical card scripts for EDOPro. Send bug reports through Discord only!
89 stars 63 forks source link

small issue regarding summon gate #124

Closed AndreOliveiraMendes closed 4 years ago

AndreOliveiraMendes commented 4 years ago

aparent it was a bad find & replace, previous it was

local ect = c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and cc29724053[tp]

then the cosntant CARD_SUMMON_GATE = 29724053 was created, but the find replace can't deal with c29724053 cause c29724053 and cCARD_SUMMON_GATE leads to diferents things, first is a object and segond is just a constant that probaly nil, the proper handling would be something like _G["c" .. CARD_SUMMON_GATE], aparent there about 28 cards with that issue (https://github.com/kevinlul/edopro-script/search?q=cCARD_SUMMON_GATE&unscoped_q=cCARD_SUMMON_GATE), that it.

AlphaKretin commented 4 years ago

This is related to GetMetatable - that needs to be able to take an ID instead of a Card instance, so that we can get Summon Gate’s metatable and use that instead of calling it explicitly. See #7