/// <summary> /// Resets the fields to their default values when a new Pokémon gets switched in. /// </summary> /// <param name="BatonPassed">If the Pokémon got switched in using Baton Pass.</param> public void ResetFields(bool BatonPassed) { this.SleepTurns = 0; this.TruantRound = 0; this.Taunted = 0; this.Rage = 0; this.Uproar = 0; this.Endure = 0; this.Protect = 0; this.Detect = 0; this.KingsShield = 0; this.ProtectMoveCounter = 0; this.ToxicRound = 0; this.Nightmare = 0; this.Outrage = 0; this.Thrash = 0; this.PetalDance = 0; this.Encore = 0; this.EncoreMove = null; this.Yawn = 0; this.ConfusionTurns = 0; this.Torment = 0; this.TormentMoveID = 0; this.ChoiceMove = null; this.Recharge = 0; this.Rollout = 0; this.IceBall = 0; this.DefenseCurl = 0; this.Charge = 0; this.SolarBeam = 0; this.LansatBerry = 0; this.CustapBerry = 0; this.Trapped = 0; this.FuryCutter = 0; this.TurnsInBattle = 0; this.StockPile = 0; this.DestinyBond = 0; this.GastroAcid = 0; this.Foresight = 0; this.OdorSleught = 0; this.MiracleEye = 0; this.Fly = 0; this.Dig = 0; this.Bounce = 0; this.Dive = 0; this.ShadowForce = 0; this.SkyDrop = 0; this.SkyAttack = 0; this.RazorWind = 0; this.SkullBash = 0; this.Wrap = 0; this.Whirlpool = 0; this.Bind = 0; this.Clamp = 0; this.FireSpin = 0; this.MagmaStorm = 0; this.SandTomb = 0; this.Bide = 0; this.BideDamage = 0; this.Roost = 0; //If Baton Pass is not used to switch, also reset these variables: if (BatonPassed == false) { this.FocusEnergy = 0; this.Ingrain = 0; this.Substitute = 0; this.MagnetRise = 0; this.AquaRing = 0; this.Cursed = 0; this.Embargo = 0; this.PerishSong = 0; this.LeechSeed = 0; this.LeechSeedTarget = null; } }
/// <summary> /// Creates a new instance of the Pokémon Profile. /// </summary> /// <param name="Target">The Position on the battle field.</param> /// <param name="Pokemon">The reference to the Pokémon in the party.</param> public PokemonProfile(PokemonTarget Target, BasePokemon Pokemon) { this.FieldPosition = Target; this.Pokémon = Pokemon; }