Commit 68f27ce8 authored by Nemo Ma's avatar Nemo Ma

f

parent 53142059
...@@ -11,7 +11,6 @@ function s.initial_effect(c) ...@@ -11,7 +11,6 @@ function s.initial_effect(c)
aux.AddXyzProcedureLevelFree(c,s.matfilter,s.xyzcheck,3,3,s.ovfilter,aux.Stringid(id,2),s.xyzop) aux.AddXyzProcedureLevelFree(c,s.matfilter,s.xyzcheck,3,3,s.ovfilter,aux.Stringid(id,2),s.xyzop)
--[[Once per turn: You can detach all materials from this card; this card gains 1 additional attack during each Battle Phase this turn for each material detached.]] --[[Once per turn: You can detach all materials from this card; this card gains 1 additional attack during each Battle Phase this turn for each material detached.]]
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
--e1:Desc(0)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
...@@ -21,7 +20,6 @@ function s.initial_effect(c) ...@@ -21,7 +20,6 @@ function s.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--[[If this card destroys a monster(s) by battle while you have no cards with the same name in your GY: You can attach it to this card as material.]] --[[If this card destroys a monster(s) by battle while you have no cards with the same name in your GY: You can attach it to this card as material.]]
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
--e2:Desc(1)
e2:SetType(EFFECT_TYPE_SINGLE|EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE|EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_BATTLE_DESTROYING) e2:SetCode(EVENT_BATTLE_DESTROYING)
...@@ -37,7 +35,7 @@ function s.xyzcheck(g) ...@@ -37,7 +35,7 @@ function s.xyzcheck(g)
return g:GetClassCount(Card.GetCode)==3 return g:GetClassCount(Card.GetCode)==3
end end
function s.ovfilter(c) function s.ovfilter(c)
return c:IsFaceup() and c:IsMonster(TYPE_XYZ) and c:IsSetCard(0x442) and not c:IsCode(id) return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x442) and not c:IsCode(id)
end end
function s.xyzop(e,tp,chk) function s.xyzop(e,tp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,id)==0 end if chk==0 then return Duel.GetFlagEffect(tp,id)==0 end
......
...@@ -53,7 +53,7 @@ function c88888888.filter(c,tp) ...@@ -53,7 +53,7 @@ function c88888888.filter(c,tp)
end end
function c88888888.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88888888.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c88888888.filter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c88888888.filter(chkc,tp) end
if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_SZONE)>-1
and Duel.IsExistingTarget(c88888888.filter,tp,LOCATION_GRAVE,0,1,nil,tp) end and Duel.IsExistingTarget(c88888888.filter,tp,LOCATION_GRAVE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local x=5-Duel.GetMatchingGroupCount(aux.TRUE,tp,0,LOCATION_SZONE,nil) local x=5-Duel.GetMatchingGroupCount(aux.TRUE,tp,0,LOCATION_SZONE,nil)
......
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