Commit 53fc2660 authored by argon's avatar argon

fix

parent d2d14671
...@@ -14,7 +14,7 @@ function c22446869.initial_effect(c) ...@@ -14,7 +14,7 @@ function c22446869.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(22446869,1)) e2:SetDescription(aux.Stringid(22446869,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c22446869.thcon) e2:SetCondition(c22446869.thcon)
e2:SetTarget(c22446869.thtg) e2:SetTarget(c22446869.thtg)
...@@ -47,8 +47,7 @@ function c22446869.thfilter(c) ...@@ -47,8 +47,7 @@ function c22446869.thfilter(c)
return c:IsSetCard(0x74) and c:IsLevelBelow(4) and c:IsAbleToHand() return c:IsSetCard(0x74) and c:IsLevelBelow(4) and c:IsAbleToHand()
end end
function c22446869.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c22446869.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,22446869)==0 if chk==0 then return Duel.GetFlagEffect(tp,22446869)==0 end
and Duel.IsExistingMatchingCard(c22446869.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.RegisterFlagEffect(tp,22446869,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,22446869,RESET_PHASE+PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -14,10 +14,10 @@ function c25880422.filter(c) ...@@ -14,10 +14,10 @@ function c25880422.filter(c)
return c:IsPosition(POS_FACEUP_ATTACK) return c:IsPosition(POS_FACEUP_ATTACK)
end end
function c25880422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c25880422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c25880422.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c25880422.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c25880422.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c25880422.filter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c25880422.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c25880422.filter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
end end
function c25880422.activate(e,tp,eg,ep,ev,re,r,rp) function c25880422.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -3,7 +3,6 @@ function c94096616.initial_effect(c) ...@@ -3,7 +3,6 @@ function c94096616.initial_effect(c)
--direct attack --direct attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(94096616,0)) e1:SetDescription(aux.Stringid(94096616,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
......
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