Function setTeamToBattleTeam doesn't work

Discussion in 'Bugs and Fixes' started by Alipio, Mar 25, 2017.

  1. Alipio

    Alipio -Sab-

    Joined:
    Apr 3, 2015
    Messages:
    11
    Likes Received:
    3
    PO Trainer Name:
    -Sab-
    Client Type (ex. PC, Android, Webclient): PC

    Client Version (if known. Webclient has no version.): v2.7.1

    When did you first notice the bug?: Today

    Have you been able to reproduce the bug?: Yes, just use that function.

    Information (include relevant logs, replays, screenshots): The function "sys.setTeamToBattleTeam" doesn't work on the beforeBattleEnded event.

    [​IMG]

    (If applicable) Sources to confirm the presence of a bug (ex. Smogon):

    sys.setTeamToBattleTeam(playerId, team, battleId) Sets the team of playerId of the team they had at the end of battleId. Only works when used in beforeBattleEnded. For example if at the end of the battle he had 5 pokemon koed, then at the next battle he'll only have one pokemon not koed.

    I would appreciate if you could tell me how i can activate this function or in other case, can you tell me how i can fix it?
     
  2. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    Isn't that function commented out? + - it is