Abyssal Dragon Lord Abyss Poseidra [L]
- Card ID:
120239013 - Format: Rush Duel
- Script:
Rush/Scripts/c120239013.lua
Stats
| Field | Value |
|---|---|
| Type | 0x8021 |
| ATK | 2300 |
| DEF | 0 |
| Level/Rank/Link | 0xa |
| Race | 0x40000 |
| Attribute | 0x20 |
| Category | 0x100403 |
Card Text
text
[REQUIREMENT]
If you have 5 or more Sea Serpent Type monsters in your Graveyard, place all monsters from your Graveyard on the bottom of the Deck in any order.
[EFFECT]
Destroy 1 monster on your opponent's field. Then, if this card is in Maximum Mode and you returned 3 or more Maximum Monsters to the Deck to meet the requirement, you can destroy all cards on your opponent's field.Detected API Calls
Auxiliary.StringidCard.IsAbleToDeckOrExtraAsCostCard.IsLocationCard.IsRaceCard.IsTypeCard.RegisterEffectDuel.DestroyDuel.GetMatchingGroupDuel.HintDuel.IsExistingMatchingCardDuel.SelectYesNoDuel.SetOperationInfoEffect.CloneEffect.CreateEffectEffect.GetDescriptionEffect.GetHandlerEffect.GetValueEffect.SetCategoryEffect.SetConditionEffect.SetCostEffect.SetDescriptionEffect.SetLabelEffect.SetOperationEffect.SetRangeEffect.SetTargetEffect.SetTypeEffect.SetValueGroup.CloneGroup.GetCountRushDuel.IsMaximumModeRushDuel.IsOperatedGroupExistsRushDuel.SelectAndDoActionRushDuel.SendToDeckBottom
Script
lua
local cm,m=GetID()
cm.name="深渊龙神 深渊波塞德拉[L]"
function cm.initial_effect(c)
--Destroy (Normal)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DESTROY)
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)
--Destroy (MaximumMode)
local e2=e1:Clone()
e2:SetDescription(aux.Stringid(m,2))
e2:SetType(EFFECT_TYPE_IGNITION+EFFECT_TYPE_XMATERIAL)
e2:SetLabel(m)
c:RegisterEffect(e2)
end
--Destroy
function cm.confilter(c)
return c:IsRace(RACE_SEASERPENT)
end
function cm.costfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.exfilter(c)
return c:IsType(TYPE_MAXIMUM) and c:IsLocation(LOCATION_DECK)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_GRAVE,0,5,nil)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.costfilter,tp,LOCATION_GRAVE,0,nil)
if chk==0 then return g:GetCount()>0 end
RD.SendToDeckBottom(g,e,tp,REASON_COST)
if RD.IsOperatedGroupExists(cm.exfilter,3,nil) then
e:SetValue(1)
else
e:SetValue(0)
end
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
if RD.IsMaximumMode(e:GetHandler()) then
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_DESTROY,nil,tp,0,LOCATION_MZONE,1,1,nil,function(g)
if Duel.Destroy(g,REASON_EFFECT)~=0 and RD.IsMaximumMode(e:GetHandler()) and e:GetValue()==1
and Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
local sg=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD,nil)
Duel.Destroy(sg,REASON_EFFECT)
end
end)
end