Skip to content

Commit 199212c

Browse files
committed
Update "Maliss" Trap cards
Fixed a bug where the player would not be able to active them by banishing a monster they controlled if they were afffected by an effect like Chaos Hunter's effect.
1 parent 928d2ab commit 199212c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

official/c20726052.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function s.initial_effect(c)
3636
end
3737
s.listed_series={SET_MALISS}
3838
function s.spcostfilter(c,tp)
39-
return c:IsFaceup() and c:IsSetCard(SET_MALISS) and c:IsAbleToRemove() and Duel.GetMZoneCount(tp,c)>0
39+
return c:IsFaceup() and c:IsSetCard(SET_MALISS) and c:IsAbleToRemove(tp) and Duel.GetMZoneCount(tp,c)>0
4040
end
4141
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
4242
e:SetLabel(100)

official/c57111661.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function s.initial_effect(c)
4444
end
4545
s.listed_series={SET_MALISS}
4646
function s.spcostfilter(c,loc,e,tp)
47-
return c:IsFaceup() and c:IsSetCard(SET_MALISS) and c:IsAbleToRemove()
47+
return c:IsFaceup() and c:IsSetCard(SET_MALISS) and c:IsAbleToRemove(tp)
4848
and Duel.IsExistingMatchingCard(s.spfilter,tp,loc,0,1,nil,e,tp,c)
4949
end
5050
function s.spfilter(c,e,tp,mc,ignore_zone_chk)
@@ -99,4 +99,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
9999
e2:SetCode(EFFECT_CANNOT_TRIGGER)
100100
tc:RegisterEffect(e2)
101101
end
102-
end
102+
end

official/c94722358.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ function s.initial_effect(c)
2222
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
2323
e2:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
2424
e2:SetValue(function(e) e:SetLabel(1) end)
25-
e2:SetCondition(function(e) return Duel.IsExistingMatchingCard(s.thcostfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) end)
25+
e2:SetCondition(function(e) return Duel.IsExistingMatchingCard(s.thcostfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,e:GetHandlerPlayer()) end)
2626
c:RegisterEffect(e2)
2727
e1:SetLabelObject(e2)
2828
end
2929
s.listed_series={SET_MALISS}
30-
function s.thcostfilter(c)
31-
return c:IsFaceup() and c:IsSetCard(SET_MALISS) and c:IsAbleToRemove()
30+
function s.thcostfilter(c,tp)
31+
return c:IsFaceup() and c:IsSetCard(SET_MALISS) and c:IsAbleToRemove(tp)
3232
end
3333
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
3434
local label_obj=e:GetLabelObject()
3535
if chk==0 then label_obj:SetLabel(0) return true end
3636
if label_obj:GetLabel()>0 then
3737
label_obj:SetLabel(0)
3838
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
39-
local g=Duel.SelectMatchingCard(tp,s.thcostfilter,tp,LOCATION_MZONE,0,1,1,nil)
39+
local g=Duel.SelectMatchingCard(tp,s.thcostfilter,tp,LOCATION_MZONE,0,1,1,nil,tp)
4040
Duel.Remove(g,POS_FACEUP,REASON_COST)
4141
end
4242
end

0 commit comments

Comments
 (0)