1: --[[message
3dff221746 2023-04-17 2: 更新:2023-04-14
3: 卡数:23
4: 规则:大师3
5: 不死海王星
6: ]]
7: --puzzle1
8: Debug.SetAIName("四妹")
9: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3)
10: Debug.SetPlayerInfo(0,500,0,0)
11: Debug.SetPlayerInfo(1,18500,0,0)
12:
13: local e0=Effect.GlobalEffect()
14: e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
15: e0:SetCode(EVENT_ADJUST)
16: e0:SetCountLimit(1)
17: e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end)
18: e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
19: local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,3,3,nil)
20: if g:GetCount()>0 then
21: Duel.SendtoHand(g,nil,REASON_RULE)
22: end end)
23: Duel.RegisterEffect(e0,0)
24:
25: Debug.AddCard(7953868,0,0,LOCATION_DECK,0,POS_FACEDOWN)
26: Debug.AddCard(14785765,0,0,LOCATION_DECK,0,POS_FACEDOWN)
27: Debug.AddCard(4064256,0,0,LOCATION_DECK,0,POS_FACEDOWN)
28: Debug.AddCard(88071625,0,0,LOCATION_DECK,0,POS_FACEDOWN)
29: Debug.AddCard(7953868,0,0,LOCATION_DECK,0,POS_FACEDOWN)
30: Debug.AddCard(12247206,0,0,LOCATION_DECK,0,POS_FACEDOWN)
31: Debug.AddCard(43040603,0,0,LOCATION_DECK,0,POS_FACEDOWN)
32: Debug.AddCard(48976825,0,0,LOCATION_DECK,0,POS_FACEDOWN)
33: Debug.AddCard(17259470,0,0,LOCATION_GRAVE,0,POS_FACEDOWN)
34: Debug.AddCard(92826944,0,0,LOCATION_GRAVE,0,POS_FACEDOWN)
35: Debug.AddCard(65422840,0,0,LOCATION_GRAVE,0,POS_FACEDOWN)
36: Debug.AddCard(7953868,0,0,LOCATION_GRAVE,0,POS_FACEDOWN)
37: Debug.AddCard(14644902,0,0,LOCATION_DECK,0,POS_FACEDOWN)
38:
39: Debug.AddCard(73776643,0,0,LOCATION_GRAVE,0,POS_FACEUP)
40: Debug.AddCard(12014404,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
41: Debug.AddCard(34086406,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
42: Debug.AddCard(34086406,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
43: Debug.AddCard(68597372,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
44: Debug.AddCard(28150174,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
45: Debug.AddCard(11398059,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
46: Debug.AddCard(76067258,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
47: Debug.AddCard(3897065,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
48: Debug.AddCard(89631139,1,1,LOCATION_GRAVE,0,POS_FACEUP)
49: Debug.AddCard(89631139,1,1,LOCATION_GRAVE,0,POS_FACEUP)
50: Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_DEFENSE)
51: Debug.AddCard(22047978,1,1,LOCATION_SZONE,2,POS_FACEDOWN)
52: Debug.ReloadFieldEnd()
53: --~ Debug.ShowHint("在这个回合取得胜利!")
54: Debug.ShowHint("从卡组中选择三张卡加入手卡!")
55: aux.BeginPuzzle()
56: local e999=Effect.GlobalEffect()
57: e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
58: e999:SetCode(EVENT_DAMAGE)
59: e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
60: e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
61: Debug.ShowHint("残局群181175613") end)
62: Duel.RegisterEffect(e999,0)