Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Mystical Elf
- --COPYRIGHT by Yami An
- function c999999979.initial_effect(c)
- --ATK
- local e1=Effect.CreateEffect(c)
- e1:SetCategory(CATEGORY_ATKCHANGE)
- e1:SetType(EFFECT_TYPE_IGNITION)
- e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET)
- e1:SetRange(LOCATION_MZONE)
- e1:SetCountLimit(1)
- e1:SetTarget(c999999979.atktg)
- e1:SetOperation(c999999979.atkop)
- c:RegisterEffect(e1)
- end
- function c999999979.filter(c)
- return c:IsFaceup()
- end
- function c999999979.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
- if chkc then return
- chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c999999979.filter(chkc) and chkc~=e:GetHandler()
- end
- if chk==0 then return
- Duel.IsExistingTarget(c999999979.filter,tp,LOCATION_MZONE,0,1,e:GetHandler())
- end
- Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
- Duel.SelectTarget(tp,c999999979.filter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
- end
- function c999999979.atkop(e,tp,eg,ep,ev,re,r,rp)
- local c=e:GetHandler()
- local tc=Duel.GetFirstTarget()
- local atk=c:GetTextAttack()
- local e1=Effect.CreateEffect(e:GetHandler())
- e1:SetType(EFFECT_TYPE_SINGLE)
- e1:SetCode(EFFECT_UPDATE_ATTACK)
- e1:SetValue(atk)
- tc:RegisterEffect(e1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement