Commit 92e23dd8 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12029010.lua

parent 0df30b8e
...@@ -51,7 +51,7 @@ function cm.spfilter(c,e,tp) ...@@ -51,7 +51,7 @@ function cm.spfilter(c,e,tp)
end end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp) function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return bit.band(loc,LOCATION_ONFIELD)~=0 and e:GetHandler():IsSetCard(0x5faa) and not re:GetHandler():IsCode(table.unpack(Sr_setback)) return bit.band(loc,LOCATION_ONFIELD)~=0 and re:GetHandler():IsSetCard(0x5faa) and not re:GetHandler():IsCode(table.unpack(Sr_setback))
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,nil,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,nil,e,tp) end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment