Commit 8b681777 authored by mercury233's avatar mercury233 Committed by GitHub

fix Ruins of the Divine Dragon Lords (#1945)

parent 7f6e096c
...@@ -39,7 +39,7 @@ function c69868555.initial_effect(c) ...@@ -39,7 +39,7 @@ function c69868555.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c69868555.cfilter(c) function c69868555.cfilter(c)
return not c:IsSummonLocation(LOCATION_GRAVE) return not c:IsSummonLocation(LOCATION_GRAVE) or (c:GetOriginalType()&TYPE_TRAP~=0)
end end
function c69868555.dfilter(c,eg) function c69868555.dfilter(c,eg)
return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsLevel(7,8) and not eg:IsContains(c) return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsLevel(7,8) and not eg:IsContains(c)
...@@ -55,7 +55,7 @@ function c69868555.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,7 +55,7 @@ function c69868555.distg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,g:GetCount(),0,0)
end end
function c69868555.filter(c,e) function c69868555.filter(c,e)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and not c:IsPreviousLocation(LOCATION_GRAVE) and c:IsRelateToEffect(e) return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c69868555.cfilter(c) and c:IsRelateToEffect(e)
end end
function c69868555.disop(e,tp,eg,ep,ev,re,r,rp) function c69868555.disop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c69868555.filter,nil,e) local g=eg:Filter(c69868555.filter,nil,e)
......
...@@ -43,8 +43,8 @@ end ...@@ -43,8 +43,8 @@ end
function c73082255.eval(e,re,rp) function c73082255.eval(e,re,rp)
local c=e:GetHandler() local c=e:GetHandler()
local rc=re:GetHandler() local rc=re:GetHandler()
return re:IsActiveType(TYPE_MONSTER) and not rc:IsSummonLocation(LOCATION_GRAVE) and rc:IsSummonType(SUMMON_TYPE_SPECIAL) return re:IsActiveType(TYPE_MONSTER) and re:GetActivateLocation()==LOCATION_MZONE and rc:IsSummonType(SUMMON_TYPE_SPECIAL)
and re:GetActivateLocation()==LOCATION_MZONE and (not rc:IsSummonLocation(LOCATION_GRAVE) or (rc:GetOriginalType()&TYPE_TRAP~=0))
end end
function c73082255.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c73082255.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) 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