Commit c4608bde authored by salix5's avatar salix5

Merge pull request #1372 from DailyShana/patch-3

fix
parents 01ecfa26 d4c93384
......@@ -40,10 +40,9 @@ function c19221310.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c19221310.filter,tp,LOCATION_ONFIELD+LOCATION_HAND+LOCATION_DECK,0,1,1,nil)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
if c:IsRelateToEffect(e) and g:GetFirst():IsLocation(LOCATION_GRAVE) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
local tc=g:GetFirst()
if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_GRAVE) and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
function c19221310.destg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -45,12 +45,13 @@ function c46502744.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c46502744.spop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
Duel.SpecialSummon(e:GetHandler(),1,tp,tp,false,false,POS_FACEUP)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) then
c:RegisterFlagEffect(46502745,RESET_EVENT+0x1fe0000,0,1)
end
end
function c46502744.remcon(e)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
return e:GetHandler():GetFlagEffect(46502745)~=0
end
function c46502744.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
......
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