Commit 92a9d029 authored by 想象力很好的毛虫's avatar 想象力很好的毛虫 Committed by GitHub

Fix Condition (#2250)

parent de45171c
......@@ -56,11 +56,8 @@ function c29942771.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
function c29942771.cfilter(c,tp)
return c:IsSummonPlayer(tp)
end
function c29942771.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c29942771.cfilter,1,nil,1-tp)
return eg:IsExists(Card.IsSummonPlayer,1,e:GetHandler(),1-tp)
end
function c29942771.spfilter(c,e,tp)
return c:IsSetCard(0x2a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -75,7 +75,7 @@ function c53087962.distg(e,c)
return c:GetSummonLocation()==LOCATION_EXTRA and c:IsLevel(0)
end
function c53087962.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSummonPlayer,1,nil,1-tp)
return eg:IsExists(Card.IsSummonPlayer,1,e:GetHandler(),1-tp)
end
function c53087962.thfilter(c)
return c:IsSetCard(0x163) and c:IsAbleToHand()
......
......@@ -29,7 +29,7 @@ function c6556909.initial_effect(c)
c:RegisterEffect(e2)
end
function c6556909.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSummonPlayer,1,nil,1-tp)
return eg:IsExists(Card.IsSummonPlayer,1,e:GetHandler(),1-tp)
end
function c6556909.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() 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