Lovely Rabbit
- Card ID:
120300018 - Format: Rush Duel
- Script:
Rush/Scripts/c120300018.lua
Stats
| Field | Value |
|---|---|
| Type | 0x21 |
| ATK | 0 |
| DEF | 1400 |
| Level/Rank/Link | 0x2 |
| Race | 0x4 |
| Attribute | 0x10 |
| Category | 0x108 |
Card Text
text
[REQUIREMENT]
If you have 10 or more cards in your Deck, reveal 1 Fairy Type monster with 0 ATK in your hand.
[EFFECT]
Draw 1 card. Then, send 1 card from your hand to the Graveyard. Then, if you have a face-up DARK Attribute Fairy Type monster with 0 original ATK on your field, you can make 1 face-up monster on your opponent's field lose 1000 ATK until the end of this turn.Detected API Calls
Auxiliary.StringidCard.GetBaseAttackCard.IsAbleToGraveCard.IsAttackCard.IsAttributeCard.IsFaceupCard.IsPublicCard.IsRaceCard.RegisterEffectDuel.BreakEffectDuel.GetFieldGroupCountDuel.IsExistingMatchingCardDuel.IsPlayerCanDrawEffect.CreateEffectEffect.SetCategoryEffect.SetConditionEffect.SetCostEffect.SetDescriptionEffect.SetOperationEffect.SetPropertyEffect.SetRangeEffect.SetTargetEffect.SetTypeGroup.GetFirstRushDuel.AttachAtkDefRushDuel.CanSelectAndDoActionRushDuel.CostShowHandRushDuel.DrawRushDuel.SelectAndDoActionRushDuel.SendToGraveAndExistsRushDuel.TargetDraw
Script
lua
local cm,m=GetID()
cm.name="爱之兔"
function cm.initial_effect(c)
--Draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Draw
function cm.costfilter(c,e,tp)
return not c:IsPublic() and c:IsRace(RACE_FAIRY) and c:IsAttack(0)
end
function cm.exfilter(c)
return c:IsFaceup() and c:GetBaseAttack()==0 and c:IsAttribute(ATTRIBUTE_DARK)
and c:IsRace(RACE_FAIRY)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>9
end
cm.cost=RD.CostShowHand(cm.costfilter,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
RD.TargetDraw(tp,1)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if RD.Draw()~=0 then
RD.SelectAndDoAction(HINTMSG_TOGRAVE,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil,function(g)
Duel.BreakEffect()
if RD.SendToGraveAndExists(g)
and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil,function(g)
RD.AttachAtkDef(e,g:GetFirst(),-1000,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end
end)
end
end