--Pastel Palettes - Band Hina --Script by XyLeN function c20015002.initial_effect(c) --enable return aux.EnablePastelPalettesReturn(c,aux.Stringid(20015002,1),aux.Stringid(20015002,2),20015002,20015002) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(20015002,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_START) e1:SetCountLimit(1,20015002+200) e1:SetCondition(c20015002.descon) e1:SetTarget(c20015002.destg) e1:SetOperation(c20015002.desop) c:RegisterEffect(e1) end function c20015002.descon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker()==e:GetHandler() end function c20015002.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end function c20015002.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) if #g>0 then Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end end dofile("script/Pastel Palettes Core.lua")