Commit bdfbd4c8 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c22100000.lua

parent 859234fa
Pipeline #31252 passed with stages
in 33 minutes and 13 seconds
......@@ -46,6 +46,19 @@ function cm.initial_effect(c)
e3:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL)
e3:SetOperation(cm.operation)
c:RegisterEffect(e3)
--atk&def
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_UPDATE_ATTACK)
e5:SetRange(LOCATION_PZONE)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetTargetRange(0,LOCATION_MZONE)
e5:SetValue(cm.atkval1)
c:RegisterEffect(e5)
local e6=e5:Clone()
e6:SetCode(EFFECT_UPDATE_DEFENSE)
e6:SetValue(cm.defval1)
c:RegisterEffect(e6)
end
function cm.atkval(e,c)
local atk=c:GetAttack()
......@@ -53,11 +66,16 @@ function cm.atkval(e,c)
return atk
end
function cm.defval(e,c)
local atk=c:GetDefense()
if c:GetControler()~=e:GetHandlerPlayer() then atk=-atk/2 end
local def=c:GetDefense()
if c:GetControler()~=e:GetHandlerPlayer() then def=-def/2 end
return atk
end
function cm.atkval1(e,c)
return math.ceil(-c:GetAttack()/2)
end
function cm.defval1(e,c)
return math.ceil(-c:GetDefense()/2)
end
function cm.attr(g)
return g:GetClassCount(Card.GetAttribute)==5 and g:GetClassCount(Card.GetOriginalRace)==1
end
......@@ -79,7 +97,7 @@ function cm.hspcon(e,c)
end
return res and g:GetClassCount(Card.GetAttribute)>=5
end
function cm.hspop(e,tp,eg,ep,ev,re,r,rp,c)
function cm.hspop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.GetReleaseGroup(tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
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