Commit d920c4f9 authored by oilloillo's avatar oilloillo

fix eff2 not include changePos & SpSummon with faceDown

parent 75589ab8
......@@ -12,10 +12,7 @@ function M.initial_effect(c)
M.addCommonEff(c)
end
M.hana_mat={
aux.FilterBoolFunction(Card.IsFusionSetCard,0xaa6),
aux.FilterBoolFunction(Card.IsFusionSetCard,0x229),
}
function M.addEff1(c)
function filter(c, tp)
return c:IsPreviousLocation(LOCATION_HAND) and c:IsType(TYPE_MONSTER) and c:GetPreviousControler() == tp
......@@ -94,6 +91,23 @@ function M.addEff2(c)
e2:SetTarget(tg)
e2:SetOperation(op)
c:RegisterEffect(e2)
local function tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk == 0 then
local sg = eg:Filter(Card.IsPosition, nil, POS_FACEDOWN_DEFENSE)
return sg:GetCount() > 0
end
Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, c, 1, 0, 0)
end
local e32 = e2:Clone()
e32:SetTarget(tg2)
e32:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e32)
local e22 = e32:Clone()
e22:SetCode(EVENT_CHANGE_POS)
c:RegisterEffect(e22)
end
function M.addCommonEff(c)
......
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