Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VanillaSalt committed Dec 21, 2014
1 parent cc5a51f commit 9c54548
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion script/c17412721.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
function c17412721.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
Expand All @@ -49,6 +49,7 @@ function c17412721.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
if c:IsRelateToEffect(e) then
c:SetCardTarget(tc)
e:GetLabelObject():SetLabelObject(tc)
Expand Down
4 changes: 2 additions & 2 deletions script/c20590784.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function c20590784.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(20590784,0)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=g:Select(tp,1,1,nil)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local sg=g:Select(tp,1,1,nil)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
end
end
2 changes: 1 addition & 1 deletion script/c22657402.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function c22657402.initial_effect(c)
c:RegisterEffect(e3)
end
function c22657402.spfilter(c)
return c:IsFaceup() and c:IsCode(5522)
return c:IsFaceup() and c:IsCode(96163807)
end
function c22657402.spcon(e,c)
if c==nil then return true end
Expand Down

0 comments on commit 9c54548

Please sign in to comment.