Commit 2d674fe0 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Simorgh, Bird of Ancestry, Geartown (#1584)

parent 77ed7d49
...@@ -12,7 +12,7 @@ function c37694547.initial_effect(c) ...@@ -12,7 +12,7 @@ function c37694547.initial_effect(c)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_HAND,LOCATION_HAND) e2:SetTargetRange(LOCATION_HAND,LOCATION_HAND)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x7)) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x7))
e2:SetValue(0x1) e2:SetValue(c37694547.decval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--special summon --special summon
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -26,6 +26,9 @@ function c37694547.initial_effect(c) ...@@ -26,6 +26,9 @@ function c37694547.initial_effect(c)
e3:SetOperation(c37694547.spop) e3:SetOperation(c37694547.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c37694547.decval(e,c)
return 0x1,37694547
end
function c37694547.spcon(e,tp,eg,ep,ev,re,r,rp) function c37694547.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
end end
......
...@@ -19,7 +19,7 @@ function c86489182.initial_effect(c) ...@@ -19,7 +19,7 @@ function c86489182.initial_effect(c)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_HAND,0) e3:SetTargetRange(LOCATION_HAND,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WIND)) e3:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WIND))
e3:SetValue(0x10001) e3:SetValue(c86489182.decval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e3:Clone()
e4:SetCode(EFFECT_DECREASE_TRIBUTE_SET) e4:SetCode(EFFECT_DECREASE_TRIBUTE_SET)
...@@ -51,6 +51,9 @@ function c86489182.valcheck(e,c) ...@@ -51,6 +51,9 @@ function c86489182.valcheck(e,c)
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
end end
end end
function c86489182.decval(e,c)
return 0x10001,86489182
end
function c86489182.condition(e,tp,eg,ep,ev,re,r,rp) function c86489182.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()==1
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