Commit 2cf47492 authored by VanillaSalt's avatar VanillaSalt

fix

parent 91cd8cce
......@@ -24,8 +24,8 @@ function c29307554.checkop(e,tp,eg,ep,ev,re,r,rp)
local p2=false
while tc do
if tc:IsPreviousLocation(LOCATION_MZONE) and tc:IsPreviousPosition(POS_DEFENCE) then
if tc:GetReasonPlayer()==0 and tc:IsControler(1) then p1=true end
if tc:GetReasonPlayer()==1 and tc:IsControler(0) then p2=true end
if tc:GetReasonPlayer()==0 and tc:GetPreviousControler()==1 then p1=true end
if tc:GetReasonPlayer()==1 and tc:GetPreviousControler()==0 then p2=true end
end
tc=eg:GetNext()
end
......
......@@ -80,8 +80,8 @@ function c37115575.excon(e)
return Duel.IsExistingMatchingCard(c37115575.exfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c37115575.cfilter(c,tp)
return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousCodeOnField()~=37115575
and c:IsPreviousSetCard(0x23) and not c:IsReason(REASON_RULE)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and c:IsPreviousSetCard(0x23) and c:GetPreviousCodeOnField()~=37115575 and not c:IsReason(REASON_RULE)
end
function c37115575.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c37115575.cfilter,1,nil,tp)
......
......@@ -25,7 +25,6 @@ end
function c48210156.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
local fid=e:GetHandler():GetFieldID()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -45,10 +45,10 @@ function c69750546.costfilter(c)
end
function c69750546.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.GetMatchingGroup(c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,nil)
if g:GetCount()>2 then
g=Duel.SelectMatchingCard(tp,c69750546.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,2,2,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
g=g:Select(tp,2,2,nil)
end
Duel.SendtoGrave(g,REASON_COST)
end
......
......@@ -30,7 +30,7 @@ function c74329404.initial_effect(c)
c:RegisterEffect(e4)
end
function c74329404.ctfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc008)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc008)
end
function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c74329404.ctfilter,1,nil,tp)
......
......@@ -21,8 +21,8 @@ function c76547525.cfilter(c,atk)
return c:IsFaceup() and c:GetAttack()>atk
end
function c76547525.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c76547525.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack())
and e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
and Duel.IsExistingMatchingCard(c76547525.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack())
end
function c76547525.desfilter(c)
return c:IsFaceup() and c:IsDestructable()
......
......@@ -42,7 +42,7 @@ function c847915.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c847915.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c847915.dfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x48)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x48)
end
function c847915.descon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c847915.dfilter,1,nil,tp)
......
......@@ -13,7 +13,7 @@ function c87473172.initial_effect(c)
c:RegisterEffect(e1)
end
function c87473172.cfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and bit.band(c:GetPreviousRaceOnField(),RACE_WINDBEAST)~=0
end
function c87473172.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -18,7 +18,7 @@ function c92035412.initial_effect(c)
c:RegisterEffect(e2)
end
function c92035412.cfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_SZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x30)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_SZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x30)
and bit.band(c:GetPreviousTypeOnField(),TYPE_EQUIP)~=0
end
function c92035412.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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