Commit 6f6165cc authored by DailyShana's avatar DailyShana

ruling change of activation limit

parent 33912f94
......@@ -52,7 +52,6 @@ end
function c18486927.actlimit(e,re,tp)
local ct=e:GetLabel()
return re:IsActiveType(ct) and (ct==TYPE_MONSTER or re:IsHasType(EFFECT_TYPE_ACTIVATE))
and not re:GetHandler():IsImmuneToEffect(e)
end
function c18486927.actcon(e)
local tc=Duel.GetAttacker()
......
......@@ -94,7 +94,6 @@ end
function c19048328.aclimit(e,re,tp)
local att=e:GetLabelObject():GetLabel()
return re:IsActiveType(TYPE_MONSTER) and bit.band(att,re:GetHandler():GetOriginalAttribute())~=0
and not re:GetHandler():IsImmuneToEffect(e)
end
function c19048328.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -17,5 +17,5 @@ function c33746252.initial_effect(c)
c:RegisterEffect(e2)
end
function c33746252.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)
return re:IsActiveType(TYPE_MONSTER)
end
......@@ -50,7 +50,7 @@ function c34522216.limcon(e)
end
function c34522216.limval(e,re,rp)
local rc=re:GetHandler()
return re:IsActiveType(TYPE_MONSTER) and not rc:IsSetCard(0xe0) and not rc:IsImmuneToEffect(e)
return re:IsActiveType(TYPE_MONSTER) and not rc:IsSetCard(0xe0)
end
function c34522216.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
......
......@@ -46,7 +46,7 @@ function c34945480.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c34945480.actlimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)
return re:IsActiveType(TYPE_MONSTER)
end
function c34945480.condition(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetHandler():GetOverlayGroup()
......
......@@ -33,5 +33,5 @@ function c44663232.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c44663232.val(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsLevelAbove(e:GetLabel()) and not re:GetHandler():IsImmuneToEffect(e)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsLevelAbove(e:GetLabel())
end
......@@ -45,11 +45,11 @@ function c54719828.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c54719828.aclimit1(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)
return re:IsActiveType(TYPE_MONSTER)
end
function c54719828.aclimit2(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and not re:GetHandler():IsImmuneToEffect(e)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL)
end
function c54719828.aclimit3(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and not re:GetHandler():IsImmuneToEffect(e)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP)
end
......@@ -21,7 +21,7 @@ function c72772445.initial_effect(c)
e3:SetCode(EFFECT_CANNOT_ACTIVATE)
e3:SetRange(LOCATION_FZONE)
e3:SetTargetRange(0,1)
e3:SetValue(c72772445.aclimit)
e3:SetValue(1)
e3:SetCondition(c72772445.actcon)
c:RegisterEffect(e3)
--spsummon
......@@ -39,9 +39,6 @@ end
function c72772445.actfilter(c,tp)
return c and c:IsFaceup() and c:IsSetCard(0xe2) and c:IsType(TYPE_MONSTER) and c:IsControler(tp)
end
function c72772445.aclimit(e,re,tp)
return not re:GetHandler():IsImmuneToEffect(e)
end
function c72772445.actcon(e)
local tp=e:GetHandlerPlayer()
return c72772445.actfilter(Duel.GetAttacker(),tp) or c72772445.actfilter(Duel.GetAttackTarget(),tp)
......
......@@ -23,5 +23,5 @@ function c76721030.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c76721030.aclimit(e,re,tp)
local loc=re:GetActivateLocation()
return (loc==LOCATION_MZONE or loc==LOCATION_HAND) and re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)
return (loc==LOCATION_MZONE or loc==LOCATION_HAND) and re:IsActiveType(TYPE_MONSTER)
end
......@@ -56,5 +56,5 @@ function c80696379.condition(e)
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end
function c80696379.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)
return re:IsActiveType(TYPE_MONSTER)
end
......@@ -60,5 +60,5 @@ function c86240887.target(e,c)
return c:IsRace(RACE_DRAGON)
end
function c86240887.aclimit(e,re,tp)
return re:GetHandler():IsRace(RACE_DRAGON) and re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)
return re:GetHandler():IsRace(RACE_DRAGON) and re:IsActiveType(TYPE_MONSTER)
end
......@@ -25,7 +25,7 @@ function c99000107.initial_effect(c)
end
function c99000107.aclimit(e,re,tp)
local tc=re:GetHandler()
return tc:IsLocation(LOCATION_MZONE) and tc:IsFaceup() and tc:IsAttackPos() and re:IsActiveType(TYPE_MONSTER) and not tc:IsImmuneToEffect(e)
return tc:IsLocation(LOCATION_MZONE) and tc:IsFaceup() and tc:IsAttackPos() and re:IsActiveType(TYPE_MONSTER)
end
function c99000107.tgcon(e)
return e:GetHandler():IsDefensePos()
......
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