--Allure Rose Maiden local cid,id=GetID() function cid.initial_effect(c) aux.AddOrigEvoluteType(c) c:EnableReviveLimit() aux.AddEvoluteProc(c,nil,3,cid.filter2,1,1) --to hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,id) e1:SetCost(cid.drcost) e1:SetTarget(cid.thtg) e1:SetOperation(cid.thop) c:RegisterEffect(e1) --immune --local e2=Effect.CreateEffect(c) -- e2:SetType(EFFECT_TYPE_FIELD) --e2:SetCode(EFFECT_IMMUNE_EFFECT) -- e2:SetRange(LOCATION_MZONE) -- e2:SetTargetRange(LOCATION_MZONE,0) -- e2:SetTarget(cid.etarget) -- e2:SetValue(cid.efilter) -- c:RegisterEffect(e2) end function cid.filter2(c,ec,tp) return c:IsRace(RACE_PLANT) or c:IsAttribute(ATTRIBUTE_WATER) end function cid.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,0,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) end function cid.discfilter(c) return c:IsFaceup() and c:IsRace(RACE_PLANT) and c:IsAbleToGraveAsCost() and not c:IsStatus(STATUS_BATTLE_DESTROYED) end function cid.drcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsCanRemoveEC(tp,3,REASON_COST) and Duel.IsExistingMatchingCard(cid.discfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,c) end e:GetHandler():RemoveEC(tp,3,REASON_COST) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g=Duel.SelectMatchingCard(tp,cid.discfilter,tp,LOCATION_ONFIELD,0,1,1,c) Duel.SendtoGrave(g,REASON_COST) end function cid.thop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end end function cid.etarget(e,c) return c:IsRace(RACE_PLANT) and c:IsPosition (POS_FACEUP_DEFENSE) end function cid.efilter(e,re) return re:IsActiveType(TYPE_MONSTER) and te:GetOwnerPlayer()~=e:GetOwnerPlayer() end