Skip to content

Ember the Ultra Assistant ​

  • Card ID: 120283035
  • Format: Rush Duel
  • Script: Rush/Scripts/c120283035.lua

Stats ​

FieldValue
Type0x21
ATK1600
DEF1500
Level/Rank/Link0x5
Race0x80
Attribute0x4
Category0x200508

Card Text ​

text
[REQUIREMENT]	
You have 10 or more cards in your Deck during the turn you Normal Summoned this card.	
[EFFECT]	
Draw 1 card. Then, if you have "Ember the Super Assistant" in your Graveyard, send the top 2 cards of your Deck to the Graveyard. Then, you can add to your hand 1 FIRE Attribute monster from among the cards sent. You cannot activate the effects of monsters whose original Level is 5 until the end of this turn.

Detected API Calls ​

Script ​

lua
local cm,m=GetID()
local list={120226023}
cm.name="超绝助手·阿炽"
function cm.initial_effect(c)
	RD.AddCodeList(c,list)
	--Draw
	local e1=Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(m,0))
	e1:SetCategory(CATEGORY_DRAW+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
	e1:SetType(EFFECT_TYPE_IGNITION)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCondition(cm.condition)
	e1:SetTarget(cm.target)
	e1:SetOperation(cm.operation)
	c:RegisterEffect(e1)
end
--Draw
function cm.exfilter(c)
	return c:IsCode(list[1])
end
function cm.thfilter(c)
	return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsLocation(LOCATION_GRAVE) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>9 and RD.IsSummonTurn(e:GetHandler())
end
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 and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_GRAVE,0,1,nil) then
		local sg,og=RD.SendDeckTopToGraveAndCanSelect(tp,2,aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),1,1)
		if sg:GetCount()>0 then
			Duel.BreakEffect()
			RD.SendToHandAndExists(sg,e,tp,REASON_EFFECT)
		end
	end
	if Duel.GetFlagEffect(tp,m)~=0 then return end
	RD.CreateCannotActivateEffect(e,aux.Stringid(m,2),cm.aclimit,tp,1,0,RESET_PHASE+PHASE_END)
	Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
end
function cm.aclimit(e,re,tp)
	local tc=re:GetHandler()
	return re:IsActiveType(TYPE_MONSTER) and tc:GetOriginalLevel()==5
end