Commit 8fb65eca authored by VanillaSalt's avatar VanillaSalt

fix

parent 400c8b92
...@@ -35,7 +35,7 @@ function c5489987.drtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,7 +35,7 @@ function c5489987.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
function c5489987.drop(e,tp,eg,ep,ev,re,r,rp,c) function c5489987.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
if Duel.Draw(p,d,REASON_EFFECT)~=0 then if Duel.Draw(p,d,REASON_EFFECT)~=0 then
local c=e:GetHandler() local c=e:GetHandler()
...@@ -44,14 +44,18 @@ function c5489987.drop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -44,14 +44,18 @@ function c5489987.drop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
Duel.BreakEffect() Duel.BreakEffect()
if tc:IsType(TYPE_MONSTER) and tc:IsSetCard(0xe6) then if tc:IsType(TYPE_MONSTER) and tc:IsSetCard(0xe6) then
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if c:IsRelateToEffect(e) then
c:CompleteProcedure() if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 c:CompleteProcedure()
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then elseif Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
Duel.SendtoGrave(c,REASON_RULE) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE)
end
end end
else else
g:AddCard(c) if c:IsRelateToEffect(e) then
g:AddCard(c)
end
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
...@@ -70,7 +74,7 @@ function c5489987.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,7 +74,7 @@ function c5489987.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function c5489987.atkop(e,tp,eg,ep,ev,re,r,rp,chk) function c5489987.atkop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
if tc:IsRelateToBattle() and tc:IsFaceup() and tc:IsControler(tp) then if tc:IsRelateToBattle() and tc:IsFaceup() and tc:IsControler(tp) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -53,17 +53,11 @@ function c95943058.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,17 +53,11 @@ function c95943058.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCondition(c95943058.spcon) e2:SetCondition(c95943058.spcon)
e2:SetTarget(c95943058.sptg) e2:SetTarget(c95943058.sptg)
e2:SetOperation(c95943058.spop) e2:SetOperation(c95943058.spop)
e2:SetLabel(0) e2:SetLabel(Duel.GetTurnCount(tp)+2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c95943058.spcon(e,tp,eg,ep,ev,re,r,rp) function c95943058.spcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp then return end return Duel.GetTurnPlayer()==tp and e:GetLabel()==Duel.GetTurnCount(tp)
local ct=e:GetLabel()
if ct==0 then
e:SetLabel(Duel.GetTurnCount())
return false
end
return ct~=Duel.GetTurnCount()
end end
function c95943058.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c95943058.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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