Example #1
0
    //reset turnID, called when battle start
    public static void ResetTurnID()
    {
        //if there's a valid ID, assign to it
        int factionID = UnitControl.GetPlayerFactionTurnID();

        if (factionID >= 0)
        {
            turnID = factionID;
        }
        else
        {
            turnID = 0;
        }

        turnIDLoop = 1;
    }