Commit 2edbcfec authored by 未闻皂名's avatar 未闻皂名

2025/12/3 bug修复

parent 83bf58d1
Pipeline #41827 passed with stages
in 8 minutes and 54 seconds
......@@ -24,23 +24,12 @@ function cm.initial_effect(c)
RD.AddContinuousEffect(c,e1,e2)
end
--Damage
function cm.damfilter(c,tp)
if not c:IsPreviousControler(1-tp) then return false end
local bc=c:GetReasonCard()
if not bc then return false end
if bc:IsRelateToBattle() then
return bc:IsFaceup() and bc:IsLocation(LOCATION_MZONE) and bc:IsControler(tp)
and bc:IsType(TYPE_MONSTER) and bc:GetOriginalRace()&RACE_ZOMBIE==RACE_ZOMBIE
else
return bc:GetPreviousPosition()&POS_FACEUP>0
and bc:GetPreviousLocation()&LOCATION_MZONE==LOCATION_MZONE
and bc:IsPreviousControler(tp)
and bc:GetPreviousTypeOnField()&TYPE_MONSTER==TYPE_MONSTER
and bc:GetPreviousRaceOnField()&RACE_ZOMBIE==RACE_ZOMBIE
end
end
function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and eg:IsExists(cm.damfilter,1,nil,tp)
local tc=eg:GetFirst()
local rc=tc:GetReasonCard()
return tc:IsLocation(LOCATION_GRAVE) and tc:IsType(TYPE_MONSTER) and rc:IsRelateToBattle()
and rc:IsControler(tp) and rc:GetOriginalRace()&RACE_ZOMBIE==RACE_ZOMBIE
and Duel.GetTurnPlayer()==tp
end
function cm.damop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(Card.IsLevelAbove,tp,LOCATION_GRAVE,0,nil,1)
......
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