Commit af85702e authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Odd-Eyes Rebellion Dragon, Nirvana High Paladin (#597)

parent 3e54309a
...@@ -92,7 +92,8 @@ function c45627618.valcheck(e,c) ...@@ -92,7 +92,8 @@ function c45627618.valcheck(e,c)
end end
end end
function c45627618.pencon(e,tp,eg,ep,ev,re,r,rp) function c45627618.pencon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_MZONE) local c=e:GetHandler()
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and c:IsPreviousLocation(LOCATION_MZONE) and c:IsFaceup()
end end
function c45627618.pentg(e,tp,eg,ep,ev,re,r,rp,chk) function c45627618.pentg(e,tp,eg,ep,ev,re,r,rp,chk)
local lsc=Duel.GetFieldCard(tp,LOCATION_SZONE,6) local lsc=Duel.GetFieldCard(tp,LOCATION_SZONE,6)
......
...@@ -240,7 +240,8 @@ function c80896940.lpop(e,tp,eg,ep,ev,re,r,rp) ...@@ -240,7 +240,8 @@ function c80896940.lpop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(1-tp,math.ceil(Duel.GetLP(1-tp)/2)) Duel.SetLP(1-tp,math.ceil(Duel.GetLP(1-tp)/2))
end end
function c80896940.pencon(e,tp,eg,ep,ev,re,r,rp) function c80896940.pencon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_MZONE) local c=e:GetHandler()
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and c:IsPreviousLocation(LOCATION_MZONE) and c:IsFaceup()
end end
function c80896940.pentg(e,tp,eg,ep,ev,re,r,rp,chk) function c80896940.pentg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7) end if chk==0 then return Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7) 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