Commit 088737d4 authored by argon.sun's avatar argon.sun

fix

parent 7ab64171
......@@ -2863,6 +2863,7 @@ int32 field::process_battle_command(uint16 step) {
}
case 20: {
infos.phase = PHASE_DAMAGE;
core.chain_attack = FALSE;
pduel->write_buffer8(MSG_DAMAGE_STEP_START);
core.units.begin()->arg1 = FALSE;
core.damage_calculated = FALSE;
......
......@@ -7,10 +7,14 @@ function c25789292.initial_effect(c)
e1:SetHintTiming(TIMING_DAMAGE_STEP,TIMING_DAMAGE_STEP+0x1c0)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c25789292.condition)
e1:SetTarget(c25789292.target)
e1:SetOperation(c25789292.activate)
c:RegisterEffect(e1)
end
function c25789292.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c25789292.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
......@@ -10,7 +10,7 @@ function c26412047.initial_effect(c)
c:RegisterEffect(e1)
end
function c26412047.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsDestructable()
end
function c26412047.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c26412047.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) 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