Commit 4a5f7054 authored by POLYMER's avatar POLYMER

fix

parent eb2ec02a
...@@ -24,7 +24,7 @@ function c10111131.initial_effect(c) ...@@ -24,7 +24,7 @@ function c10111131.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--to hand --to hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(10111131,0)) e2:SetDescription(aux.Stringid(10111131,1))
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PHASE+PHASE_BATTLE) e2:SetCode(EVENT_PHASE+PHASE_BATTLE)
......
...@@ -59,7 +59,7 @@ function cm.efilter(e,te) ...@@ -59,7 +59,7 @@ function cm.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
end end
function cm.regacop(e,tp,eg,ep,ev,re,r,rp) function cm.regacop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(rp,15005077,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(rp,15005079,RESET_PHASE+PHASE_END,0,1)
end end
function cm.regrmop(e,tp,eg,ep,ev,re,r,rp) function cm.regrmop(e,tp,eg,ep,ev,re,r,rp)
local ag=eg:Filter(Card.IsLocation,nil,LOCATION_REMOVED) local ag=eg:Filter(Card.IsLocation,nil,LOCATION_REMOVED)
...@@ -74,11 +74,11 @@ function cm.costcon(e) ...@@ -74,11 +74,11 @@ function cm.costcon(e)
end end
function cm.costchk(e,te_or_c,tp) function cm.costchk(e,te_or_c,tp)
local ct=Duel.GetFlagEffect(tp,m) local ct=Duel.GetFlagEffect(tp,m)
if Duel.GetFlagEffect(tp,15005077)<=3 then return true end if Duel.GetFlagEffect(tp,15005079)<=3 then return true end
return Duel.CheckLPCost(tp,ct*1800) return Duel.CheckLPCost(tp,ct*1800)
end end
function cm.costop(e,tp,eg,ep,ev,re,r,rp) function cm.costop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,15005077)>3 then if Duel.GetFlagEffect(tp,15005079)>3 then
Duel.PayLPCost(tp,1800) Duel.PayLPCost(tp,1800)
end end
end end
\ No newline at end of file
...@@ -88,11 +88,11 @@ function c65840020.disfilter(c) ...@@ -88,11 +88,11 @@ function c65840020.disfilter(c)
return c:IsAbleToRemove() return c:IsAbleToRemove()
end end
function c65840020.discon(e,tp,eg,ep,ev,re,r,rp) function c65840020.discon(e,tp,eg,ep,ev,re,r,rp)
c=e:GetHandler() local c=e:GetHandler()
return rp==1-tp and Duel.IsChainDisablable(ev) and re:IsActiveType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(c65840020.disfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,c) and e:GetHandler():GetFlagEffect(id)<=0 return rp==1-tp and Duel.IsChainDisablable(ev) and re:IsActiveType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(c65840020.disfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,c) and e:GetHandler():GetFlagEffect(id)<=0
end end
function c65840020.disop(e,tp,eg,ep,ev,re,r,rp) function c65840020.disop(e,tp,eg,ep,ev,re,r,rp)
c=e:GetHandler() local c=e:GetHandler()
if Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(65840020,3)) then if Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(65840020,3)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tc=Duel.SelectMatchingCard(tp,c65840020.disfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,c):GetFirst() local tc=Duel.SelectMatchingCard(tp,c65840020.disfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,c):GetFirst()
......
...@@ -72,7 +72,7 @@ end ...@@ -72,7 +72,7 @@ end
function c98920411.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c98920411.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
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