Commit b692fba0 authored by DailyShana's avatar DailyShana

fix

parent a8934f93
......@@ -13,7 +13,8 @@ function c12470447.initial_effect(c)
c:RegisterEffect(e1)
end
function c12470447.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY and e:GetHandler():IsLocation(LOCATION_SZONE)
return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY
and e:GetHandler():IsLocation(LOCATION_SZONE) and Duel.GetCurrentChain()==0
end
function c12470447.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,LOCATION_MZONE)>0 end
......
......@@ -83,10 +83,10 @@ function c64753157.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c64753157.cfilter(c,tp)
return c:IsCode(41091257) and c:GetPreviousControler()==tp
return c:IsCode(41091257) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
end
function c64753157.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c64753157.cfilter,1,nil,tp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(c64753157.cfilter,1,nil,tp)
end
function c64753157.thfilter(c)
return c:IsCode(41091257) and c:IsAbleToHand()
......
......@@ -3,7 +3,7 @@ function c88241506.initial_effect(c)
--negate attack
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(88241506,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetCountLimit(1,88241506)
......@@ -29,6 +29,7 @@ end
function c88241506.natg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE)
end
function c88241506.naop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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