Exemplo n.º 1
0
        protected override void OnMicroSync()
        {
            base.OnMicroSync();

            if (Flag == null || Flag.Deleted)
            {
                Flag = null;
                return;
            }

            if (Battle == null || Battle.Deleted || Battle.State == PvPBattleState.Internal || Battle.Hidden)
            {
                Flag.Delete();
                Flag = null;
                return;
            }

            Flag.InvalidateCarrier();

            if (Flag.IsAtPodium())
            {
                return;
            }

            Flag.UpdateDamageIncrease();
            Flag.CheckReset();
        }