Index: huamei01.lua ================================================================== --- huamei01.lua +++ huamei01.lua @@ -6,20 +6,33 @@ Debug.SetAIName("花妹") Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3) Debug.SetPlayerInfo(0,666,0,0) Debug.SetPlayerInfo(1,23333,0,0) +local e0=Effect.GlobalEffect() +e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) +e0:SetCode(EVENT_ADJUST) +e0:SetCountLimit(1) +e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end) +e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) +local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,5,5,nil) +if g:GetCount()>0 then + Duel.SendtoHand(g,nil,REASONDECKE) +end end) +Duel.RegisterEffect(e0,0) + --my hand -Debug.AddCard(31036355,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK) -Debug.AddCard(28741524,0,0,LOCATION_HAND,1,POS_FACEUP_ATTACK) -Debug.AddCard(02295440,0,0,LOCATION_HAND,2,POS_FACEUP_ATTACK) -Debug.AddCard(51790181,0,0,LOCATION_HAND,3,POS_FACEUP_ATTACK) -Debug.AddCard(19163116,0,0,LOCATION_HAND,4,POS_FACEUP_ATTACK) +Debug.AddCard(31036355,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) +Debug.AddCard(28741524,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) + +Debug.AddCard(19163116,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) --my deck Debug.AddCard(50457953,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) -Debug.AddCard(61632317,0,0,LOCATION_DECK,2,POS_FACEUP_ATTACK) +Debug.AddCard(02295440,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) +Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) +Debug.AddCard(61632317,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) --my grave Debug.AddCard(26400609,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK) Debug.AddCard(90411554,0,0,LOCATION_GRAVE,1,POS_FACEUP_ATTACK) Debug.AddCard(58695102,0,0,LOCATION_GRAVE,2,POS_FACEUP_ATTACK) @@ -44,7 +57,6 @@ --ai fzone Debug.AddCard(57554544,1,1,LOCATION_SZONE,5,POS_FACEUP_ATTACK) Debug.ReloadFieldEnd() -Debug.ShowHint("欢迎来到花妹世界") aux.BeginPuzzle()