We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a8f6b commit 9e7116eCopy full SHA for 9e7116e
official/c81677154.lua
@@ -57,7 +57,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
57
end
58
function s.rescon(lv)
59
return function(sg,e,tp,mg)
60
- return sg:GetSum(Card.GetLevel)<=lv and sg:GetClassCount(Card.GetCode)==#sg
+ return sg:GetSum(Card.GetLevel)<=lv and sg:GetClassCount(Card.GetCode)==#sg,sg:GetClassCount(Card.GetCode)~=#sg
61
62
63
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
@@ -66,7 +66,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
66
if tc and Duel.Destroy(tc,REASON_EFFECT)>0 then
67
local lv=tc:GetOriginalLevel()
68
local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_DECK,0,nil,lv)
69
- local sg=aux.SelectUnselectGroup(g,e,tp,1,lv,s.rescon(lv),1,tp,HINTMSG_TOGRAVE)
+ local sg=aux.SelectUnselectGroup(g,e,tp,1,lv,s.rescon(lv),1,tp,HINTMSG_TOGRAVE,s.rescon(lv))
70
if #sg>0 then
71
Duel.SendtoGrave(sg,REASON_EFFECT)
72
0 commit comments