Commit 4ae4a6fb authored by mercury233's avatar mercury233

fix

parent 441e6ea7
...@@ -35,7 +35,7 @@ function c101104008.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c101104008.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.SSet(tp,tc) Duel.SSet(tp,tc)
end end
end end
function c101104008.eqfilter1(c) function c101104008.eqfilter1(c,tp)
return c:IsSetCard(0x25f) and c:IsType(TYPE_TRAP) and c:IsFaceup() and c:GetEquipTarget() return c:IsSetCard(0x25f) and c:IsType(TYPE_TRAP) and c:IsFaceup() and c:GetEquipTarget()
and Duel.IsExistingTarget(c101104008.eqfilter2,0,LOCATION_MZONE,LOCATION_MZONE,1,c:GetEquipTarget(),tp) and Duel.IsExistingTarget(c101104008.eqfilter2,0,LOCATION_MZONE,LOCATION_MZONE,1,c:GetEquipTarget(),tp)
end end
...@@ -44,9 +44,9 @@ function c101104008.eqfilter2(c,tp) ...@@ -44,9 +44,9 @@ function c101104008.eqfilter2(c,tp)
end end
function c101104008.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101104008.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c101104008.eqfilter1,tp,LOCATION_SZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c101104008.eqfilter1,tp,LOCATION_SZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g1=Duel.SelectTarget(tp,c101104008.eqfilter1,tp,LOCATION_SZONE,0,1,1,nil) local g1=Duel.SelectTarget(tp,c101104008.eqfilter1,tp,LOCATION_SZONE,0,1,1,nil,tp)
local tc=g1:GetFirst() local tc=g1:GetFirst()
e:SetLabelObject(tc) e:SetLabelObject(tc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
......
...@@ -24,6 +24,7 @@ function c101104014.initial_effect(c) ...@@ -24,6 +24,7 @@ function c101104014.initial_effect(c)
e3:SetCode(EFFECT_CANNOT_TRIGGER) e3:SetCode(EFFECT_CANNOT_TRIGGER)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(0,LOCATION_MZONE) e3:SetTargetRange(0,LOCATION_MZONE)
e3:SetCondition(c101104014.actcon)
e3:SetTarget(c101104014.actlimit) e3:SetTarget(c101104014.actlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
...@@ -48,6 +49,10 @@ function c101104014.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,6 +49,10 @@ function c101104014.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c101104014.actcon(e)
local ph=Duel.GetCurrentPhase()
return (ph==PHASE_MAIN1 or ph==PHASE_MAIN2) and Duel.GetTurnPlayer()==e:GetHandlerPlayer()
end
function c101104014.actfilter(c,tp) function c101104014.actfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x156) and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) return c:IsFaceup() and c:IsSetCard(0x156) and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp)
end 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