Commit 4a4c3db7 authored by 未闻皂名's avatar 未闻皂名

2024/10/8 bug修复

parent 8893f4aa
Pipeline #30285 passed with stages
in 6 minutes and 55 seconds
......@@ -11,8 +11,8 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetValue(cm.indes)
e1:SetTarget(cm.target1)
e1:SetValue(1)
c:RegisterEffect(e1)
--Atk Up
local e2=Effect.CreateEffect(c)
......@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetCondition(cm.condition)
e2:SetTarget(cm.target)
e2:SetTarget(cm.target2)
e2:SetValue(cm.value)
c:RegisterEffect(e2)
--Continuous Effect
......@@ -41,13 +41,13 @@ end
function cm.condition(e)
return Duel.IsExistingMatchingCard(Card.IsFacedown,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end
function cm.target(e,c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY)
end
function cm.indes(e,c)
return Duel.GetAttackTarget()==c
function cm.target1(e,c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY) and Duel.GetAttackTarget()==c
end
--Atk Up
function cm.target2(e,c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY)
end
function cm.value(e,c)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)*300
end
\ No newline at end of file
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