Commit 035c5051 authored by Nemo Ma's avatar Nemo Ma

fix

parent d0066f54
......@@ -90,7 +90,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e2:SetLabelObject(e1)
e2:SetOperation(cm.tdop)
Duel.RegisterEffect(e2,tp)
local g=Duel.GetMatchingGroup(cm.ngfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local g=Duel.GetMatchingGroup(cm.ngfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0)
end
function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
......@@ -106,7 +106,7 @@ end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectMatchingCard(tp,cm.ngfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.ngfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,aux.ExceptThisCard(e))
local tc=g:GetFirst()
if tc then
Duel.HintSelection(g)
......
......@@ -86,7 +86,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e2:SetLabelObject(e1)
e2:SetOperation(cm.tdop)
Duel.RegisterEffect(e2,tp)
local g=Duel.GetMatchingGroup(cm.ngfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,LOCATION_MZONE,LOCATION_MZONE,c)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,0)
end
......
......@@ -112,8 +112,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,0,LOCATION_GRAVE,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then
local g1=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,0,nil)
local g2=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,nil)
local g1=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,0,aux.ExceptThisCard(e))
local g2=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,aux.ExceptThisCard(e))
if #g1>0 and #g2>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......
......@@ -44,7 +44,7 @@ end
function c22348093.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:GetControler()==tp and Duel.IsExistingMatchingCard(c22348093.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(22348093,2)) then
if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:GetControler()==tp and Duel.IsExistingMatchingCard(c22348093.thfilter,tp,LOCATION_DECK,0,1,nil) and tc:IsLocation(LOCATION_GRAVE) and Duel.SelectYesNo(tp,aux.Stringid(22348093,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectMatchingCard(tp,c22348093.thfilter,tp,LOCATION_DECK,0,1,1,nil)
......
......@@ -16,7 +16,7 @@ end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CARDTYPE)
Duel.SetTargetParam(Duel.SelectOption(tp,1057,1056,1063,1073,1074,1076))
Duel.SetTargetParam(Duel.SelectOption(tp,1057,1056,1063,1073,1074,aux.Stringid(id,0)))
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -24,18 +24,17 @@ function cm.initial_effect(c)
e2:SetOperation(cm.spop)
c:RegisterEffect(e2)
end
function cm.cfilter(c)
return c:IsSetCard(0x2016) and c:IsAbleToGraveAsCost()
function cm.cfilter(c,tp)
return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and Duel.GetMZoneCount(tp,c)>0 and c:IsSetCard(0x2016) and c:IsAbleToGraveAsCost()
end
function cm.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil,tp)
Duel.SendtoGrave(g,REASON_COST)
end
function cm.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -31,7 +31,7 @@ end
--e1
function c64800113.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return not Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,0,1,c)
return c:IsSummonType(SUMMON_TYPE_SYNCHRO) not Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,0,1,c)
end
function c64800113.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100)
......
......@@ -61,7 +61,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
and Duel.SelectYesNo(1-tp,aux.Stringid(m,0)) then
Duel.Destroy(tc,REASON_EFFECT)
end
if tc:IsOnField() and tc:IsRelateToEffect(e)
if tc:IsOnField() and tc:IsRelateToEffect(e) and c:IsRelateToEffect(e)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
......
......@@ -91,7 +91,7 @@ function cm.op3(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SendtoDeck(c,nil,SEQ_DECKTOP,REASON_EFFECT)~=0 and c:IsLocation(LOCATION_EXTRA) then
Duel.Destroy(tc,REASON_EFFECT)
if tc:IsPreviousControler(tp) and tc.named_with_KarlanTrade and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(1-tp,aux.Stringid(m,0)) then
if tc:IsPreviousControler(tp) and tc.named_with_KarlanTrade and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Draw(tp,1,REASON_EFFECT)
end
end
......
......@@ -26,7 +26,7 @@ function c79029069.initial_effect(c)
end
c79029069.named_with_KarlanTrade=true
function c79029069.ctfil(c)
return c:IsAbleToGraveAsCost() and c:IsAttribute(ATTRIBUTE_WATER)
return c:IsAbleToGraveAsCost() and c:IsAttribute(ATTRIBUTE_WATER) and (c:IsLocation(LOCATION_HAND+LOCATION_MZONE) or c.named_with_KarlanTrade)
end
function c79029069.spfil(c,e,tp,g)
return c:IsCode(79029063,79029064) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,g,c)>0
......
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