Commit 35851216 authored by dest's avatar dest Committed by DailyShana

fix True King (#788)

parent 95ac59c0
...@@ -70,10 +70,14 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,10 +70,14 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp)
local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_EARTH) local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_EARTH)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
Duel.SendtoGrave(c,REASON_RULE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
return Duel.SendtoGrave(c,REASON_RULE)
return
else
return
end
end end
local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil) local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil)
if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(30539496,2)) then if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(30539496,2)) then
......
...@@ -71,10 +71,14 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,10 +71,14 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp)
local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_WATER) local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_WATER)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
Duel.SendtoGrave(c,REASON_RULE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
return Duel.SendtoGrave(c,REASON_RULE)
return
else
return
end
end end
local rg=Duel.GetMatchingGroup(c82321037.rmfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil) local rg=Duel.GetMatchingGroup(c82321037.rmfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(82321037,0)) then if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(82321037,0)) then
......
...@@ -70,10 +70,14 @@ function c94160895.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,10 +70,14 @@ function c94160895.spop(e,tp,eg,ep,ev,re,r,rp)
local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_WIND) local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_WIND)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
Duel.SendtoGrave(c,REASON_RULE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
return Duel.SendtoGrave(c,REASON_RULE)
return
else
return
end
end end
local rg=Duel.GetDecktopGroup(1-tp,4) local rg=Duel.GetDecktopGroup(1-tp,4)
if rm and rg:GetCount()>0 and rg:FilterCount(Card.IsAbleToRemove,nil)==4 if rm and rg:GetCount()>0 and rg:FilterCount(Card.IsAbleToRemove,nil)==4
......
...@@ -71,10 +71,14 @@ function c96746083.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,10 +71,14 @@ function c96746083.spop(e,tp,eg,ep,ev,re,r,rp)
local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_FIRE) local rm=g1:IsExists(Card.IsAttribute,2,nil,ATTRIBUTE_FIRE)
if Duel.Destroy(g1,REASON_EFFECT)==2 then if Duel.Destroy(g1,REASON_EFFECT)==2 then
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
Duel.SendtoGrave(c,REASON_RULE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
return Duel.SendtoGrave(c,REASON_RULE)
return
else
return
end
end end
local rg=Duel.GetMatchingGroup(c96746083.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,tp) local rg=Duel.GetMatchingGroup(c96746083.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,tp)
if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(96746083,0)) then if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(96746083,0)) then
......
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