Commit 8039cc9b authored by Vury Leo's avatar Vury Leo

fix: Add 屋敷わらし chainable to missing card

parent 2555882b
...@@ -20,10 +20,10 @@ function s.initial_effect(c) ...@@ -20,10 +20,10 @@ function s.initial_effect(c)
mat_operation_code_map={ mat_operation_code_map={
{ [LOCATION_REMOVED]=FusionSpell.FUSION_OPERATION_GRAVE }, { [LOCATION_REMOVED]=FusionSpell.FUSION_OPERATION_GRAVE },
{ [0xff]=FusionSpell.FUSION_OPERATION_BANISH } { [0xff]=FusionSpell.FUSION_OPERATION_BANISH }
} },
}) })
e2:SetDescription(aux.Stringid(id,2)) e2:SetDescription(aux.Stringid(id,2))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE+CATEGORY_FUSION_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE+CATEGORY_FUSION_SUMMON+CATEGORY_GRAVE_ACTION)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
......
...@@ -20,6 +20,7 @@ function s.initial_effect(c) ...@@ -20,6 +20,7 @@ function s.initial_effect(c)
{ [LOCATION_REMOVED] = FusionSpell.FUSION_OPERATION_GRAVE }, { [LOCATION_REMOVED] = FusionSpell.FUSION_OPERATION_GRAVE },
{ [0xff] = FusionSpell.FUSION_OPERATION_BANISH } { [0xff] = FusionSpell.FUSION_OPERATION_BANISH }
}, },
extra_target=s.extra_target,
}) })
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
...@@ -43,6 +44,13 @@ function s.fusfilter(c) ...@@ -43,6 +44,13 @@ function s.fusfilter(c)
return c:IsSetCard(0xdf) return c:IsSetCard(0xdf)
end end
function s.extra_target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
return true
end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_ONFIELD+LOCATION_GRAVE)
end
function s.ptg(e,c) function s.ptg(e,c)
return c:IsSetCard(0xdf) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0xdf) and c:IsType(TYPE_MONSTER)
end end
...@@ -6,9 +6,9 @@ function s.initial_effect(c) ...@@ -6,9 +6,9 @@ function s.initial_effect(c)
fusfilter=s.fusfilter, fusfilter=s.fusfilter,
pre_select_mat_location=s.pre_select_mat_location, pre_select_mat_location=s.pre_select_mat_location,
fusion_spell_matfilter=s.fusion_spell_matfilter, fusion_spell_matfilter=s.fusion_spell_matfilter,
additional_fcheck=s.fcheck additional_fcheck=s.fcheck,
}) })
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON+CATEGORY_GRAVE_ACTION)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
......
...@@ -10,7 +10,8 @@ function s.initial_effect(c) ...@@ -10,7 +10,8 @@ function s.initial_effect(c)
mat_operation_code_map={ mat_operation_code_map={
{ [LOCATION_DECK]=FusionSpell.FUSION_OPERATION_GRAVE }, { [LOCATION_DECK]=FusionSpell.FUSION_OPERATION_GRAVE },
{ [0xff]=FusionSpell.FUSION_OPERATION_SHUFFLE } { [0xff]=FusionSpell.FUSION_OPERATION_SHUFFLE }
} },
extra_target=s.extra_target,
}) })
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -24,3 +25,10 @@ function s.matfilter(c) ...@@ -24,3 +25,10 @@ function s.matfilter(c)
--- material must be one of this name --- material must be one of this name
return c:IsFusionCode(41230939,77625948,3019642) return c:IsFusionCode(41230939,77625948,3019642)
end end
function s.extra_target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
return true
end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_HAND)
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