Commit 0ad26758 authored by wind2009's avatar wind2009

Fix Disguise, the Copycat Hero

parent c10802d9
Pipeline #40612 passed with stages
in 1 minute and 21 seconds
...@@ -75,7 +75,7 @@ function s.lvcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,7 +75,7 @@ function s.lvcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipCount()>0 return e:GetHandler():GetEquipCount()>0
end end
function s.lvfilter(c,lv,ec) function s.lvfilter(c,lv,ec)
return c:IsLevelAbove(1) and not c:IsType(TYPE_TUNER) and c:IsRace(RACE_WARRIOR) return c:IsFaceup() and c:IsLevelAbove(1) and not c:IsType(TYPE_TUNER) and c:IsRace(RACE_WARRIOR)
and (not c:IsLevel(lv) or not c:IsCode(ec:GetCode())) and (not c:IsLevel(lv) or not c:IsCode(ec:GetCode()))
end end
function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...@@ -102,6 +102,6 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,6 +102,6 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e2:SetValue(tc:GetCode()) e2:SetValue(tc:GetCode())
tc:RegisterEffect(e2) c:RegisterEffect(e2)
end end
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