Commit d4efcec4 authored by gg123gg's avatar gg123gg Committed by GitHub

Add files via upload

parent da6bae46
...@@ -50,15 +50,15 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,15 +50,15 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp) function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler()==e:GetHandler() and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Duel.IsExistingMatchingCard(Card.IsCanBeXyzMaterial,tp,0,LOCATION_GRAVE,2,nil) return re:GetHandler()==e:GetHandler() and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Duel.IsExistingMatchingCard(Card.IsCanBeXyzMaterial,tp,0,LOCATION_GRAVE,2,nil,e:GetHandler())
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() then return end if not c:IsFaceup() then return end
if Duel.SelectYesNo(m,1) then if Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
c:RemoveOverlayCard(tp,1,1,REASON_COST) c:RemoveOverlayCard(tp,1,1,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local cc=Duel.SelectMatchingCard(tp,Card.IsCanBeXyzMaterial,tp,0,LOCATION_GRAVE,2,2,nil) local cc=Duel.SelectMatchingCard(tp,Card.IsCanBeXyzMaterial,tp,0,LOCATION_GRAVE,2,2,nil,e:GetHandler())
Duel.Overlay(c,cc) Duel.Overlay(c,cc)
end end
end end
\ No newline at end of file
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