--Aircaster Diane --created by Alastar Rainford, coded by Lyris --New auxiliaries by XGlitchy30 local s,id=GetID() function s.initial_effect(c) aux.AddAircasterExcavateEffect(c,3,EFFECT_TYPE_TRIGGER_O,0) aux.AddAircasterEquipEffect(c,1) --Once per turn: You can target 1 Monster Card in your Spell/Trap Zone that is also an Equip Spell; Special Summon it. local e1=Effect.CreateEffect(c) e1:Desc(2) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_ONFIELD) e1:OPT() e1:SetFunctions(s.econ,nil,s.sptg,s.spop) c:RegisterEffect(e1) end function s.econ(e) return e:GetHandler():IsSpell(TYPE_EQUIP) end function s.filter(c,e,tp) return c:IsFaceup() and c:IsOriginalType(TYPE_MONSTER) and c:IsSpell(TYPE_EQUIP) and c:GetSequence()<5 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_SZONE) and s.filter(chkc,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(s.filter,tp,LOCATION_SZONE,0,1,nil,e,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_SZONE,0,1,1,nil,e,tp) Duel.SetCardOperationInfo(g,CATEGORY_SPECIAL_SUMMON) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToChain() then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end end