public override void OnBattleStart() { base.OnBattleStart(); //Set battle position //Players follow the same BattleIndex rules, but their positions are from right to left instead of left to right Vector2 battlepos = Vector2.Zero; if (PlayerType == PlayerTypes.Mario) { battlepos = BattleManager.Instance.MarioPos; } else if (PlayerType == PlayerTypes.Partner) { battlepos = BattleManager.Instance.PartnerPos; } if (HeightState == HeightStates.Airborne) { battlepos.Y -= BattleManager.Instance.AirborneY; } else if (HeightState == HeightStates.Ceiling) { battlepos.Y -= BattleManager.Instance.CeilingY; } SetBattlePosition(battlepos); Position = BattlePosition; bool hasLuckyStar = (Inventory.Instance.FindItem(LuckyStar.LuckyStarName, true) != null); bool autoComplete = EntityProperties.HasAdditionalProperty(AdditionalProperty.AutoActionCommands); //Check for enabling and auto-completing Action Commands for Defensive Actions for (int i = 0; i < DefensiveActions.Count; i++) { DefensiveActions[i].EnableActionCommand = hasLuckyStar; if (DefensiveActions[i].actionCommand != null) { DefensiveActions[i].actionCommand.AutoComplete = autoComplete; } } }