Style cleanup
This commit is contained in:
@@ -24,8 +24,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
public class AuroraVeilEffect : Script
|
||||
{
|
||||
public int NumberOfTurns { get; set; }
|
||||
|
||||
private AuroraVeilEffect(){}
|
||||
|
||||
private AuroraVeilEffect()
|
||||
{
|
||||
}
|
||||
|
||||
public AuroraVeilEffect(int numberOfTurns)
|
||||
{
|
||||
@@ -56,10 +58,8 @@ public class AuroraVeilEffect : Script
|
||||
var side = move.User.BattleData!.Battle.Sides[targetSide.Value];
|
||||
switch (move.UseMove.Category)
|
||||
{
|
||||
case MoveCategory.Physical when
|
||||
side.VolatileScripts.Contains(ScriptUtils.ResolveName<ReflectEffect>()):
|
||||
case MoveCategory.Special when
|
||||
side.VolatileScripts.Contains(ScriptUtils.ResolveName<LightScreenEffect>()):
|
||||
case MoveCategory.Physical when side.VolatileScripts.Contains(ScriptUtils.ResolveName<ReflectEffect>()):
|
||||
case MoveCategory.Special when side.VolatileScripts.Contains(ScriptUtils.ResolveName<LightScreenEffect>()):
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ public class CraftyShieldEffect : Script
|
||||
/// <inheritdoc />
|
||||
public override void StopBeforeMove(IExecutingMove move, ref bool stop)
|
||||
{
|
||||
if (move.UseMove.Category == MoveCategory.Status)
|
||||
if (move.UseMove.Category == MoveCategory.Status)
|
||||
stop = true;
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ public class DoomDesireEffect : Script
|
||||
Turns = 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private readonly IBattleSide? _side;
|
||||
private List<Target> _targets = new();
|
||||
|
||||
@@ -26,12 +26,12 @@ public class DoomDesireEffect : Script
|
||||
{
|
||||
_side = side;
|
||||
}
|
||||
|
||||
|
||||
public void AddTarget(byte position, uint damage)
|
||||
{
|
||||
_targets.Add(new Target(position, damage));
|
||||
}
|
||||
|
||||
|
||||
public bool HasTarget(byte position)
|
||||
{
|
||||
return _targets.Exists(x => x.Position == position);
|
||||
@@ -42,7 +42,7 @@ public class DoomDesireEffect : Script
|
||||
{
|
||||
if (_side == null)
|
||||
return;
|
||||
|
||||
|
||||
var toRemove = new List<Target>();
|
||||
foreach (var v in _targets)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user