游戏王残局简化版

Artifact [0f2199f944]
Login

Artifact [0f2199f944]

Artifact 0f2199f944472a8b3caa44dc75df2be66c38abc1889ba5957391fe8ecd0689c4:


local str = {}

local cache_1
local cache_2

_G["通关邀请"] = function()
  local effect_1
  effect_1 = Effect.GlobalEffect()
  effect_1:SetType(EFFECT_TYPE_FIELD
    + EFFECT_TYPE_CONTINUOUS)
  effect_1:SetCode(EVENT_DAMAGE)
  function cache_1()
    cache_1 = Duel.GetLP(1)
    if cache_1 >= 0 then
      cache_1 = true
    else
      cache_1 = false
      end
    return cache_1
    end
  effect_1:SetCondition(cache_1)
  function cache_1()
    Debug.ShowHint("残局群181175613")
    Duel.SelectYesNo(0,1160)
    return
    end
  effect_1:SetOperation(cache_1)

  Duel.RegisterEffect(effect_1
    , 0)
--~   Effect.SetDescription(effect_1, 1160)
--~   Debug.ShowHint(Effect.GetDescription(effect_1))

  end