Commit 8afcaa9b authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix 機巧伝-神使記紀図 (#1638)

parent c7c7f353
...@@ -30,11 +30,12 @@ function c24793135.initial_effect(c) ...@@ -30,11 +30,12 @@ function c24793135.initial_effect(c)
--act limit --act limit
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD) e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_CANNOT_TRIGGER) e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e5:SetCode(EFFECT_CANNOT_ACTIVATE)
e5:SetRange(LOCATION_FZONE) e5:SetRange(LOCATION_FZONE)
e5:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e5:SetTargetRange(1,1)
e5:SetCondition(c24793135.actlimitcon) e5:SetCondition(c24793135.actlimitcon)
e5:SetTarget(c24793135.actlimittg) e5:SetValue(c24793135.actlimit)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c24793135.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c24793135.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -74,6 +75,8 @@ end ...@@ -74,6 +75,8 @@ end
function c24793135.actlimitcon(e,tp,eg,ep,ev,re,r,rp) function c24793135.actlimitcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetCounter(0x5d)>=10 return e:GetHandler():GetCounter(0x5d)>=10
end end
function c24793135.actlimittg(e,c) function c24793135.actlimit(e,re,tp)
return c:IsDefenseAbove(0) and not c:IsDefense(c:GetAttack()) local loc=re:GetActivateLocation()
local rc=re:GetHandler()
return loc==LOCATION_MZONE and re:IsActiveType(TYPE_MONSTER) and rc:IsDefenseAbove(0) and not rc:IsDefense(rc:GetAttack())
end end
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