Style cleanup
This commit is contained in:
@@ -20,14 +20,14 @@ public class BatonPass : Script
|
||||
var battleData = user.BattleData;
|
||||
if (battleData == null)
|
||||
return;
|
||||
|
||||
|
||||
var statBoosts = user.StatBoost;
|
||||
var volatileScripts = user.Volatile.Select(x => x.Script).WhereNotNull().ToList();
|
||||
foreach (var container in user.Volatile)
|
||||
{
|
||||
container.ClearWithoutRemoving();
|
||||
}
|
||||
|
||||
|
||||
var side = battleData.Battle.Sides[battleData.SideIndex];
|
||||
side.SwapPokemon(battleData.Position, toSwitch);
|
||||
|
||||
@@ -36,7 +36,7 @@ public class BatonPass : Script
|
||||
toSwitch.StatBoost.SetStatistic(stat, statBoosts.GetStatistic(stat));
|
||||
}
|
||||
toSwitch.RecalculateBoostedStats();
|
||||
|
||||
|
||||
foreach (var script in volatileScripts)
|
||||
{
|
||||
toSwitch.Volatile.Add(script);
|
||||
|
||||
Reference in New Issue
Block a user