Skip to content

Commit 0b429fb

Browse files
committed
"Darklord Djehuty" fix
Fixed a bug where it would be unable to Special Summon a non-Fairy "Darklord" monster (e.g. "Darklord Marie")
1 parent 58444dd commit 0b429fb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pre-release/c101303019.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
4242
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
4343
end
4444
function s.spop(e,tp,eg,ep,ev,re,r,rp)
45+
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
46+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
47+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
48+
if #g>0 then
49+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
50+
end
51+
end
4552
local c=e:GetHandler()
4653
--You cannot Special Summon for the rest of this turn, except Fairy monsters
4754
local e1=Effect.CreateEffect(c)
@@ -55,12 +62,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
5562
Duel.RegisterEffect(e1,tp)
5663
--Clock Lizard check
5764
aux.addTempLizardCheck(c,tp,function(e,c) return not c:IsOriginalRace(RACE_FAIRY) end)
58-
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
59-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
60-
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
61-
if #g>0 then
62-
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
63-
end
6465
end
6566
function s.thconfilter(c)
6667
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_FAIRY) and c:IsFusionMonster() and c:IsFaceup()

0 commit comments

Comments
 (0)