Skip to content

Commit aec312c

Browse files
committed
Update c55428242.lua
1 parent 6b43d8a commit aec312c

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

official/c55428242.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ function s.is_normal_hole(c)
4646
return c:IsNormalTrap() and c:IsSetCard({SET_TRAP_HOLE,SET_HOLE})
4747
end
4848
function s.distarget(e,c)
49-
return c:IsNormalTrap() or c:IsExactType(TYPE_TRAP|TYPE_EQUIP)
49+
return c:IsNormalTrap() or c:IsCompositeType(TYPE_TRAP|TYPE_EQUIP)
5050
end
5151
function s.chainfilter(e,ct)
52-
local p=e:GetHandlerPlayer()
53-
local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
54-
return p==tp and te:GetActiveType()==TYPE_TRAP
55-
end
52+
return Chain.IsTriggeringControler(ct,e:GetHandlerPlayer()) and Chain.IsTriggeringExactType(ct,TYPE_TRAP)
53+
end

0 commit comments

Comments
 (0)