Wako Gozen Riletta
- Card ID:
120309021 - Format: Rush Duel
- Script:
Rush/Scripts/c120309021.lua
Stats
| Field | Value |
|---|---|
| Type | 0xe1 |
| ATK | 2300 |
| DEF | 2000 |
| Level/Rank/Link | 0x8 |
| Race | 0x1000000 |
| Attribute | 0x1 |
| Category | 0x112003 |
Card Text
text
[REQUIREMENT]
During your Main Phase that you Ritual Summoned this card, send 1 card from your hand to the Graveyard.
[EFFECT]
Destroy 1 card on your opponent's field. Then, if you have 3 or more different Types in your Graveyard, this card gains 600 ATK until the end of this turn. This turn, you can only attack with Cyberse Type monsters, and you cannot activate the effect of "Wako Gozen Riletta".Detected API Calls
Auxiliary.StringidCard.GetRaceCard.IsAbleToGraveAsCostCard.IsFaceupCard.IsRelateToEffectCard.IsTypeCard.RegisterEffectDuel.BreakEffectDuel.DestroyDuel.GetFlagEffectDuel.GetMatchingGroupDuel.IsExistingMatchingCardDuel.RegisterFlagEffectDuel.SetOperationInfoEffect.CreateEffectEffect.GetHandlerEffect.SetCategoryEffect.SetConditionEffect.SetCostEffect.SetDescriptionEffect.SetOperationEffect.SetRangeEffect.SetTargetEffect.SetTypeGroup.GetClassCountRushDuel.AddCodeListRushDuel.AddRitualProcedureRushDuel.AttachAtkDefRushDuel.CostSendHandToGraveRushDuel.CreateCannotActivateSameCodeEffectRushDuel.CreateRaceCannotAttackEffectRushDuel.IsSpecialSummonMainPhaseRushDuel.SelectAndDoAction
Script
lua
local cm,m=GetID()
local list={120309021}
cm.name="和红御前 联系者"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
RD.AddRitualProcedure(c)
--Destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Destroy
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSpecialSummonMainPhase(e:GetHandler(),SUMMON_TYPE_RITUAL)
end
cm.cost=RD.CostSendHandToGrave(Card.IsAbleToGraveAsCost,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_DESTROY,nil,tp,0,LOCATION_ONFIELD,1,1,nil,function(g)
if Duel.Destroy(g,REASON_EFFECT)~=0 then
local mg=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_MONSTER)
local ct=mg:GetClassCount(Card.GetRace)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) and ct>=3 then
Duel.BreakEffect()
RD.AttachAtkDef(e,c,600,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end
end
end)
if Duel.GetFlagEffect(tp,m)~=0 then return end
RD.CreateRaceCannotAttackEffect(e,aux.Stringid(m,1),RACE_ALL-RACE_CYBERSE,tp,1,0,RESET_PHASE+PHASE_END)
RD.CreateCannotActivateSameCodeEffect(e,aux.Stringid(m,2),m,tp,list[1])
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
end