Commit c43ca9b1 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Darklord Asmodeus (#1900)

parent 2cc279b2
...@@ -55,7 +55,8 @@ end ...@@ -55,7 +55,8 @@ end
function c85771019.spop(e,tp,eg,ep,ev,re,r,rp) function c85771019.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 then return end
if Duel.IsPlayerCanSpecialSummonMonster(tp,85771020,0,TYPES_TOKEN_MONSTER,1800,1300,5,RACE_FAIRY,ATTRIBUTE_DARK) then if not Duel.IsPlayerCanSpecialSummonMonster(tp,85771020,0,TYPES_TOKEN_MONSTER,1800,1300,5,RACE_FAIRY,ATTRIBUTE_DARK)
or not Duel.IsPlayerCanSpecialSummonMonster(tp,85771021,0,TYPES_TOKEN_MONSTER,1200,1200,3,RACE_FAIRY,ATTRIBUTE_DARK) then return end
local token=Duel.CreateToken(tp,85771020) local token=Duel.CreateToken(tp,85771020)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
...@@ -65,18 +66,14 @@ function c85771019.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,18 +66,14 @@ function c85771019.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
token:RegisterEffect(e1) token:RegisterEffect(e1)
end local token2=Duel.CreateToken(tp,85771021)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 Duel.SpecialSummonStep(token2,0,tp,tp,false,false,POS_FACEUP)
and Duel.IsPlayerCanSpecialSummonMonster(tp,85771021,0,TYPES_TOKEN_MONSTER,1200,1200,3,RACE_FAIRY,ATTRIBUTE_DARK) then local e2=Effect.CreateEffect(e:GetHandler())
local token=Duel.CreateToken(tp,85771021) e2:SetType(EFFECT_TYPE_SINGLE)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
local e1=Effect.CreateEffect(e:GetHandler()) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetType(EFFECT_TYPE_SINGLE) e2:SetValue(1)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) token2:RegisterEffect(e2)
e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
token:RegisterEffect(e1)
end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment