Commit 784407e1 authored by tsubaki's avatar tsubaki

fix 2g

parent 93def8e3
Pipeline #32880 passed with stage
in 12 seconds
...@@ -57,7 +57,7 @@ function c25068.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c25068.checkop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
local tc local tc
if at:IsStatus(STATUS_BATTLE_DESTROYED) then tc=a end if at and at:IsStatus(STATUS_BATTLE_DESTROYED) then tc=a end
if a:IsStatus(STATUS_BATTLE_DESTROYED) then tc=at end if a:IsStatus(STATUS_BATTLE_DESTROYED) then tc=at end
if a:IsStatus(STATUS_BATTLE_DESTROYED) and at:IsStatus(STATUS_BATTLE_DESTROYED) then return end if a:IsStatus(STATUS_BATTLE_DESTROYED) and at:IsStatus(STATUS_BATTLE_DESTROYED) then return end
tc:RegisterFlagEffect(25068,RESET_EVENT+0x1fe0000,0,0) tc:RegisterFlagEffect(25068,RESET_EVENT+0x1fe0000,0,0)
......
...@@ -45,7 +45,7 @@ end ...@@ -45,7 +45,7 @@ end
-- ① 丢弃cost -- ① 丢弃cost
function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,LOCATION_HAND,1,nil,34013) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,LOCATION_HAND,1,nil,34013) end
Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_HAND,LOCATION_HAND,1,1,nil,34013) local sg=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_HAND,LOCATION_HAND,1,1,nil,34013)
Duel.SendtoGrave(sg,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(sg,REASON_COST+REASON_DISCARD)
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