Commit 42d7908a authored by argon.sun's avatar argon.sun

fix

parent 4fd7ba4f
...@@ -10,7 +10,6 @@ function c1992816.initial_effect(c) ...@@ -10,7 +10,6 @@ function c1992816.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetHintTiming(0,TIMING_BATTLE_PHASE) e1:SetHintTiming(0,TIMING_BATTLE_PHASE)
e1:SetCondition(c1992816.atkcon) e1:SetCondition(c1992816.atkcon)
e1:SetOperation(c1992816.atkop) e1:SetOperation(c1992816.atkop)
......
...@@ -35,7 +35,8 @@ function c37164373.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,7 +35,8 @@ function c37164373.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c37164373.operation(e,tp,eg,ep,ev,re,r,rp) function c37164373.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local ct=Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_HAND)
local dg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,nil) local dg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,nil)
if ct>0 and dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(37164373,1)) then if ct>0 and dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(37164373,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
...@@ -7,11 +7,11 @@ function c49221191.initial_effect(c) ...@@ -7,11 +7,11 @@ function c49221191.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(49221191,1)) e1:SetDescription(aux.Stringid(49221191,1))
e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetHintTiming(TIMING_BATTLE_PHASE)
e1:SetCondition(c49221191.condition) e1:SetCondition(c49221191.condition)
e1:SetCost(c49221191.cost) e1:SetCost(c49221191.cost)
e1:SetTarget(c49221191.target) e1:SetTarget(c49221191.target)
...@@ -38,11 +38,14 @@ function c49221191.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,11 +38,14 @@ function c49221191.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectMatchingCard(tp,c49221191.rfilter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c49221191.rfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c49221191.filter(c)
return c:IsFaceup() and c:GetAttack()>0
end
function c49221191.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c49221191.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c49221191.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c49221191.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,c49221191.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
function c49221191.operation(e,tp,eg,ep,ev,re,r,rp) function c49221191.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
...@@ -5,6 +5,7 @@ function c51281878.initial_effect(c) ...@@ -5,6 +5,7 @@ function c51281878.initial_effect(c)
e1:SetDescription(aux.Stringid(51281878,0)) e1:SetDescription(aux.Stringid(51281878,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetRange(LOCATION_GRAVE) e1:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetTarget(c51281878.target) e1:SetTarget(c51281878.target)
......
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