Commit b8f2217b authored by Grajade's avatar Grajade

Update c86379867.lua

parent 3e2a3df4
...@@ -16,7 +16,7 @@ function c86379867.initial_effect(c) ...@@ -16,7 +16,7 @@ function c86379867.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BATTLE_START) e2:SetCode(EVENT_BATTLE_START)
e2:SetTarget(c86379867.target) e2:SetTarget(c86379867.target2)
e2:SetOperation(c86379867.operation) e2:SetOperation(c86379867.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--equip --equip
...@@ -39,6 +39,10 @@ function c86379867.spfilter(c,e,tp) ...@@ -39,6 +39,10 @@ function c86379867.spfilter(c,e,tp)
return c:IsSetCard(0x190) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and hasRoom and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x190) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and hasRoom and c:IsType(TYPE_MONSTER)
end end
function c86379867.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c86379867.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c86379867.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA)
end
function c86379867.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c86379867.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil,e,tp) if chk==0 then return Duel.IsExistingMatchingCard(c86379867.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil,e,tp)
and (Duel.GetAttackTarget()==e:GetHandler() or (Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget()~=nil)) and (Duel.GetAttackTarget()==e:GetHandler() or (Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget()~=nil))
end 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