cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Weird Legendary Pokemon - Terrakion issue Sat Nov 30, 2013 6:37 pm | |
| Can someone explain to me why its ATK boost effect only goes off if Yoke is on the field? - Effect:
--Legendary Pokemon - Terrakion function c32387036.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsSetCard,0x7E83),4),3) c:EnableReviveLimit() --destroy replace local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(32387036,0)) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetCode(EFFECT_DESTROY_REPLACE) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c32387036.reptg) e1:SetOperation(c32387036.repop) c:RegisterEffect(e1) --attack up local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_ATKCHANGE) e2:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE) e2:SetCode(EVENT_DETACH_MATERIAL) e2:SetTarget(c32387036.atktg) e2:SetOperation(c32387036.atkop) c:RegisterEffect(e2) end function c32387036.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end return Duel.SelectYesNo(tp,aux.Stringid(32387036,0)) end function c32387036.repop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT) end function c32387036.atktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsRelateToEffect(e) end end function c32387036.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) and c:IsFaceup() then local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_COPY_INHERIT) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetReset(RESET_EVENT+0x1ff0000) e1:SetValue(500) c:RegisterEffect(e1) end end
|
|
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: Re: Weird Legendary Pokemon - Terrakion issue Sun Dec 01, 2013 5:41 pm | |
| Are you sure that it's only working with Yoke or did you also try it with other cards that gain (fixed?) ATK by detaching Xyz-Material? |
|