Commit e75194ae authored by salix5's avatar salix5

remove POS_FACEDOWN_ATTACK

parent 25cfeeea
......@@ -19,8 +19,7 @@ function c31305911.initial_effect(c)
end
function c31305911.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local pos=c:GetBattlePosition()
return c==Duel.GetAttackTarget() and (pos==POS_FACEDOWN_DEFENSE or pos==POS_FACEDOWN_ATTACK) and c:IsLocation(LOCATION_MZONE)
return c==Duel.GetAttackTarget() and bit.band(c:GetBattlePosition(),POS_FACEDOWN)~=0 and c:IsLocation(LOCATION_MZONE)
end
function c31305911.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -20,7 +20,7 @@ LOCATION_FZONE =0x100 --场地区
LOCATION_PZONE =0x200 --灵摆区
--Positions 表示形式
POS_FACEUP_ATTACK =0x1 --表侧攻击
POS_FACEDOWN_ATTACK =0x2 --里侧攻击
POS_FACEDOWN_ATTACK =0x2 --N/A
POS_FACEUP_DEFENSE =0x4 --表侧守备
POS_FACEDOWN_DEFENSE =0x8 --里侧守备
POS_FACEUP =0x5 --正面表示
......
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