Commit d2e27c89 authored by wind2009's avatar wind2009
parents 3159c483 c5db5fd3
...@@ -29,8 +29,8 @@ function s.initial_effect(c) ...@@ -29,8 +29,8 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.desfilter(c,tp) function s.desfilter(c,tp)
return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_ONFIELD)
and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp)
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.desfilter,1,nil,tp) return eg:IsExists(s.desfilter,1,nil,tp)
......
...@@ -50,7 +50,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -50,7 +50,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
{b2,aux.Stringid(id,2),2}, {b2,aux.Stringid(id,2),2},
{b3,aux.Stringid(id,3),3}, {b3,aux.Stringid(id,3),3},
{b4,aux.Stringid(id,4),4}) {b4,aux.Stringid(id,4),4})
c:RemoveCounter(tp,0x70,op,REASON_COST) Duel.RemoveCounter(tp,1,0,0x70,op,REASON_COST)
if op==1 or op==2 then if op==1 or op==2 then
e:SetCategory(CATEGORY_ATKCHANGE) e:SetCategory(CATEGORY_ATKCHANGE)
elseif op==3 then elseif op==3 then
......
...@@ -44,7 +44,7 @@ function s.initial_effect(c) ...@@ -44,7 +44,7 @@ function s.initial_effect(c)
--deckdes --deckdes
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(id,1)) e5:SetDescription(aux.Stringid(id,1))
e5:SetCategory(CATEGORY_DECKDES) e5:SetCategory(CATEGORY_TOGRAVE+CATEGORY_DECKDES)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetProperty(EFFECT_FLAG_DELAY) e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCode(EVENT_TO_GRAVE) e5:SetCode(EVENT_TO_GRAVE)
......
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