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

fix Darklord Asmodeus (#1900)

parent 2cc279b2
...@@ -55,28 +55,25 @@ end ...@@ -55,28 +55,25 @@ 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)
local token=Duel.CreateToken(tp,85771020) or not Duel.IsPlayerCanSpecialSummonMonster(tp,85771021,0,TYPES_TOKEN_MONSTER,1200,1200,3,RACE_FAIRY,ATTRIBUTE_DARK) then return end
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) local token=Duel.CreateToken(tp,85771020)
local e1=Effect.CreateEffect(e:GetHandler()) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetValue(1) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(1)
token:RegisterEffect(e1) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
end token:RegisterEffect(e1)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local token2=Duel.CreateToken(tp,85771021)
and Duel.IsPlayerCanSpecialSummonMonster(tp,85771021,0,TYPES_TOKEN_MONSTER,1200,1200,3,RACE_FAIRY,ATTRIBUTE_DARK) then Duel.SpecialSummonStep(token2,0,tp,tp,false,false,POS_FACEUP)
local token=Duel.CreateToken(tp,85771021) local e2=Effect.CreateEffect(e:GetHandler())
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) e2:SetType(EFFECT_TYPE_SINGLE)
local e1=Effect.CreateEffect(e:GetHandler()) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e2:SetValue(1)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(1) token2:RegisterEffect(e2)
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