--Void Lord Malzahar function c11000124.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(11000124,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCondition(c11000124.spcon) e1:SetTarget(c11000124.sptg) e1:SetOperation(c11000124.spop) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e2) --remove local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD) e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE) e3:SetCode(EFFECT_TO_GRAVE_REDIRECT) e3:SetRange(LOCATION_MZONE) e3:SetTarget(c11000124.rmtarget) e3:SetTargetRange(0xff,0xff) e3:SetValue(LOCATION_REMOVED) c:RegisterEffect(e3) --token local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(11000124,1)) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e4:SetRange(LOCATION_MZONE) e4:SetCode(EVENT_SUMMON_SUCCESS) e4:SetCountLimit(1,11000124) e4:SetCondition(c11000124.tkcon) e4:SetTarget(c11000124.tktg) e4:SetOperation(c11000124.tkop) c:RegisterEffect(e4) local e5=e4:Clone() e5:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e5) local e6=e4:Clone() e6:SetCode(EVENT_FLIP_SUMMON_SUCCESS) c:RegisterEffect(e4) end function c11000124.cfilter(c,tp) return c:IsFaceup() and c:GetSummonPlayer()==tp and c:IsSetCard(0x1F4) end function c11000124.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(c11000124.cfilter,1,nil,tp) end function c11000124.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) end function c11000124.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end function c11000124.rmtarget(e,c) return not c:IsLocation(0x80) and c:IsSetCard(0x1F4) and c:IsType(TYPE_MONSTER) end function c11000124.limfilter(c,tp) return c:GetSummonPlayer()==tp and c:IsSetCard(0x1F4) end function c11000124.tkcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(c11000124.limfilter,1,e:GetHandler(),tp) end function c11000124.tktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,11000125,0,0x4011,0,0,1,RACE_FIEND,ATTRIBUTE_DARK) end Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) end function c11000124.tkop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,11000125,0,0x4011,0,0,1,RACE_FIEND,ATTRIBUTE_DARK) then return end local token=Duel.CreateToken(tp,11000125) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_ATTACK) end