Grace Princess Hina
- Card ID:
120287020 - Format: Rush Duel
- Script:
Rush/Scripts/c120287020.lua
Stats
| Field | Value |
|---|---|
| Type | 0x21 |
| ATK | 300 |
| DEF | 1400 |
| Level/Rank/Link | 0x2 |
| Race | 0x40 |
| Attribute | 0x10 |
| Category | 0x40400 |
Card Text
text
[REQUIREMENT]
Place 1 card from your hand on the bottom of the Deck.
[EFFECT]
Special Summon 1 "Grace Princess Kana" or 1 Level 7 LIGHT Attribute Aqua Type Normal Monster from your Graveyard to your field in face-up Defense Position. If you Special Summoned "Grace Princess Kana" by this effect, you can Set 1 Ritual Spell Card from your Graveyard to your Spell & Trap Zone.Detected API Calls
Auxiliary.NecroValleyFilterAuxiliary.StringidCard.GetOriginalCodeRuleCard.IsAbleToDeckAsCostCard.IsAttributeCard.IsCodeCard.IsLevelCard.IsRaceCard.IsSSetableCard.IsTypeCard.RegisterEffectDuel.GetLocationCountDuel.GetMZoneCountDuel.IsExistingMatchingCardDuel.SetOperationInfoDuel.SpecialSummonEffect.CreateEffectEffect.SetCategoryEffect.SetCostEffect.SetDescriptionEffect.SetOperationEffect.SetRangeEffect.SetTargetEffect.SetTypeGroup.GetFirstRushDuel.AddCodeListRushDuel.CanSelectAndSetRushDuel.CostSendHandToDeckBottomRushDuel.FilterRushDuel.IsCanBeSpecialSummonedRushDuel.SelectAndDoAction
Script
lua
local cm,m=GetID()
local list={120155013}
cm.name="饶有情趣的菓子雏姬"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Special Summon
function cm.spfilter(c,e,tp)
return (c:IsCode(list[1])
or (c:IsType(TYPE_NORMAL) and c:IsLevel(7) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_AQUA)))
and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP_DEFENSE)
end
function cm.exfilter(c)
return c:GetOriginalCodeRule()==list[1]
end
function cm.setfilter(c)
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_SPELL) and c:IsSSetable()
end
cm.cost=RD.CostSendHandToDeckBottom(Card.IsAbleToDeckAsCost,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end
local filter=RD.Filter(cm.spfilter,e,tp)
RD.SelectAndDoAction(HINTMSG_SPSUMMON,aux.NecroValleyFilter(filter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
local tc=g:GetFirst()
local ex=tc:IsCode(list[1])
if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 and ex then
RD.CanSelectAndSet(aux.Stringid(m,1),aux.NecroValleyFilter(cm.setfilter),tp,LOCATION_GRAVE,0,1,1,nil,e)
end
end)
end