Commit fa3382a1 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent fdc0d47c
Pipeline #2486 passed with stages
in 45 minutes and 46 seconds
......@@ -20,7 +20,7 @@ function cm.desop(e,tp)
if op==1 then
Duel.Damage(1-tp,1000,REASON_EFFECT)
elseif op==2 then
g:SelectDestroy(tp,nil,1,1,nil)
g:SelectDestroy(tp,aux.TRUE,1,1,nil,{})
elseif op==3 then
if c:GetFlagEffect(m)<=0 then
local e1=Effect.CreateEffect(c)
......
......@@ -29,7 +29,7 @@ function c60150810.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0)
local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
local tc2=Duel.GetFieldCard(1-tp,LOCATION_DECK,0)
if (tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
......
......@@ -61,7 +61,7 @@ function c60150811.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
Duel.RegisterEffect(e2,tp)
local tc3=Duel.GetFieldCard(tp,LOCATION_DECK,0)
local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
local tc2=Duel.GetFieldCard(1-tp,LOCATION_DECK,0)
if (tc3:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
......
......@@ -54,7 +54,7 @@ function c60150812.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
end
local tc3=Duel.GetFieldCard(tp,LOCATION_DECK,0)
local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
local tc2=Duel.GetFieldCard(1-tp,LOCATION_DECK,0)
if (tc3:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
......
......@@ -57,7 +57,7 @@ function c60150817.spop2(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0)
local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
local tc2=Duel.GetFieldCard(1-tp,LOCATION_DECK,0)
if (tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
......
......@@ -39,7 +39,7 @@ function c60150819.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0)
local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
local tc2=Duel.GetFieldCard(1-tp,LOCATION_DECK,0)
if (tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
......
......@@ -24,6 +24,8 @@ function c60159902.initial_effect(c)
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(c60159902.descost)
e3:SetTarget(c60159902.target3)
e3:SetOperation(c60159902.activate)
......
......@@ -24,6 +24,7 @@ function c60159903.initial_effect(c)
e3:SetDescription(aux.Stringid(60159903,2))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(c60159903.atkcon)
e3:SetCost(c60159903.atkcost)
e3:SetTarget(c60159903.atktg)
......
......@@ -25,6 +25,7 @@ function c60159904.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(c60159904.atkcost)
e3:SetTarget(c60159904.ctarget)
e3:SetOperation(c60159904.cactivate)
......@@ -77,7 +78,7 @@ function c60159904.operation2(e,tp,eg,ep,ev,re,r,rp)
end
end
function c60159904.cfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_DRAGON) and c:IsAbleToRemoveAsCost()
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_AQUA) and c:IsAbleToRemoveAsCost()
end
function c60159904.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60159904.cfilter,tp,LOCATION_GRAVE,0,1,nil) 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