Commit 97592646 authored by DailyShana's avatar DailyShana

fix

parent 48a405e6
...@@ -62,8 +62,8 @@ end ...@@ -62,8 +62,8 @@ end
function c13893596.tgfilter(c) function c13893596.tgfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c13893596.filter(c,rc,code) function c13893596.filter(c,rc)
return c:IsRelateToCard(rc) and c:GetCode()==code return c:IsRelateToCard(rc) and c:IsSetCard(0x40)
end end
function c13893596.tgop(e,tp,eg,ep,ev,re,r,rp) function c13893596.tgop(e,tp,eg,ep,ev,re,r,rp)
local WIN_REASON_EXODIUS = 0x14 local WIN_REASON_EXODIUS = 0x14
...@@ -73,20 +73,9 @@ function c13893596.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,20 +73,9 @@ function c13893596.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_GRAVE) if tc and Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_GRAVE)
and c:IsRelateToEffect(e) and c:IsFaceup() then and c:IsRelateToEffect(e) and c:IsFaceup() then
tc:CreateRelation(c,RESET_EVENT+0x1fe0000) tc:CreateRelation(c,RESET_EVENT+0x1fe0000)
local a1=false local a2=false local a3=false local a4=false local a5=false local g=Duel.GetMatchingGroup(c13893596.filter,tp,LOCATION_GRAVE,0,nil,c)
local g=Duel.GetFieldGroup(tp,LOCATION_GRAVE,0) if g:GetClassCount(Card.GetCode)==5 then
local gc=g:GetFirst()
while gc do
if c13893596.filter(gc,c,8124921) then a1=true
elseif c13893596.filter(gc,c,44519536) then a2=true
elseif c13893596.filter(gc,c,70903634) then a3=true
elseif c13893596.filter(gc,c,7902349) then a4=true
elseif c13893596.filter(gc,c,33396948) then a5=true
end
gc=g:GetNext()
end
if a1 and a2 and a3 and a4 and a5 then
Duel.Win(tp,WIN_REASON_EXODIUS) Duel.Win(tp,WIN_REASON_EXODIUS)
end end
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