Skip to content

Commit

Permalink
updated proc_maximum
Browse files Browse the repository at this point in the history
Maximum monsters conditions should not be able to be negated
  • Loading branch information
Yoshi80 committed Sep 17, 2024
1 parent 3d0527f commit a428f83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proc_maximum.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ function Card.AddSideMaximumHandler(c,eff)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
e6:SetRange(LOCATION_MZONE)
e6:SetTargetRange(LOCATION_MZONE,0)
e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e6:SetCondition(Maximum.sideCon)
e6:SetTarget(Maximum.eftgMax)
e6:SetLabelObject(eff)
Expand Down Expand Up @@ -284,6 +285,7 @@ function Card.AddSideMaximumHandler(c,eff)
local e11=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_SINGLE)
e11:SetCode(EFFECT_CANNOT_ATTACK)
e11:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e11:SetCondition(Maximum.sideCon)
c:RegisterEffect(e11)

Expand All @@ -304,7 +306,7 @@ function Card.AddSideMaximumHandler(c,eff)
--self destroy
local e14=Effect.CreateEffect(c)
e14:SetType(EFFECT_TYPE_SINGLE)
e14:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e14:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e14:SetRange(LOCATION_MZONE)
e14:SetCode(EFFECT_SELF_DESTROY)
e14:SetCondition(Maximum.SelfDestructCondition)
Expand All @@ -314,6 +316,7 @@ function Card.AddSideMaximumHandler(c,eff)
local e16=Effect.CreateEffect(c)
e16:SetType(EFFECT_TYPE_SINGLE)
e16:SetCode(EFFECT_UPDATE_DEFENSE)
e16:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e16:SetCondition(Maximum.sideCon)
e16:SetValue(-1000000)
c:RegisterEffect(e16)
Expand Down

0 comments on commit a428f83

Please sign in to comment.