a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalLatest imagesSearchRegisterLog in

Share
 

 D.D. Dragon - Typhoon

View previous topic View next topic Go down 
AuthorMessage
cane_63106

cane_63106


Member Title : D.D. Dragon Kaiser
Posts : 454
Join date : 2013-07-23
Location : St. Louis, MO

D.D. Dragon - Typhoon Empty
PostSubject: D.D. Dragon - Typhoon   D.D. Dragon - Typhoon Icon_minitimeFri Aug 16, 2013 3:01 am

D.D. Dragon - Typhoon Typhoo10

 --32083011
function c32083011.initial_effect(c)
--remove
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(32083011,1))
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c32083011.rmtg)
e1:SetOperation(c32083011.rmop)
c:RegisterEffect(e1)
end
function c32083011.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
end
function c32083011.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if e:GetHandler():GetPreviousLocation()~=LOCATION_REMOVED then return end
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c32083011.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c32083011.filter,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c32083011.filter,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c32083011.rmop(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
end
Back to top Go down
http:// https://www.youtube.com/user/cane63106/videos
 

D.D. Dragon - Typhoon

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» D.D. Typhoon
» new Dragon support - Attack Of The Dragon
» D.D. God Dragon
» D.D. Dragon - Resounder
» D.D. Dragon - Hishou

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Custom Cards-