Commit a0b3cab2 authored by mercury233's avatar mercury233 Committed by GitHub

fix トロイメア・ユニコーン

parent 5f0c69e6
...@@ -23,6 +23,7 @@ function c38342335.initial_effect(c) ...@@ -23,6 +23,7 @@ function c38342335.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,0) e2:SetTargetRange(1,0)
e2:SetCondition(c38342335.drcon)
e2:SetValue(c38342335.drval) e2:SetValue(c38342335.drval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -66,8 +67,10 @@ end ...@@ -66,8 +67,10 @@ end
function c38342335.drfilter(c) function c38342335.drfilter(c)
return c:IsFaceup() and c:IsSetCard(0x112) and c:GetMutualLinkedGroupCount()>0 return c:IsFaceup() and c:IsSetCard(0x112) and c:GetMutualLinkedGroupCount()>0
end end
function c38342335.drcon(e)
return Duel.GetMatchingGroupCount(c38342335.drfilter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,nil)>0
end
function c38342335.drval(e) function c38342335.drval(e)
local g=Duel.GetMatchingGroup(c38342335.drfilter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c38342335.drfilter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetCount()<=0 then return 1 end
return g:GetClassCount(Card.GetCode) return g:GetClassCount(Card.GetCode)
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