This commit is contained in:
@@ -11,7 +11,7 @@ public class BanefulBunkerEffect : ProtectionEffectScript
|
||||
base.BlockIncomingHit(executingMove, target, hitIndex, ref block);
|
||||
if (executingMove.UseMove.Category != MoveCategory.Status && executingMove.UseMove.HasFlag("contact"))
|
||||
{
|
||||
executingMove.User.SetStatus("poisoned");
|
||||
executingMove.User.SetStatus("poisoned", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ public class BeakBlastEffect : Script
|
||||
{
|
||||
if (move.UseMove.HasFlag("contact"))
|
||||
{
|
||||
move.User.SetStatus("burned");
|
||||
move.User.SetStatus("burned", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ public class KingsShield : ProtectionEffectScript
|
||||
base.BlockIncomingHit(executingMove, target, hitIndex, ref block);
|
||||
if (executingMove.UseMove.Category != MoveCategory.Status && executingMove.UseMove.HasFlag("contact"))
|
||||
{
|
||||
executingMove.User.ChangeStatBoost(Statistic.Accuracy, -2, false);
|
||||
executingMove.User.ChangeStatBoost(Statistic.Accuracy, -2, false, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ public class RageEffect : Script
|
||||
/// <inheritdoc />
|
||||
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
move.User.ChangeStatBoost(Statistic.Attack, 1, true);
|
||||
move.User.ChangeStatBoost(Statistic.Attack, 1, true, false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -15,8 +15,8 @@ public class StockpileEffect : Script
|
||||
}
|
||||
_pokemon = pokemon;
|
||||
EventBatchId batchId = new();
|
||||
pokemon.ChangeStatBoost(Statistic.Defense, 1, true, batchId);
|
||||
pokemon.ChangeStatBoost(Statistic.SpecialDefense, 1, true, batchId);
|
||||
pokemon.ChangeStatBoost(Statistic.Defense, 1, true, false, batchId);
|
||||
pokemon.ChangeStatBoost(Statistic.SpecialDefense, 1, true, false, batchId);
|
||||
StockpileCount = 1;
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ public class StockpileEffect : Script
|
||||
if (StockpileCount < 3)
|
||||
{
|
||||
EventBatchId batchId = new();
|
||||
_pokemon?.ChangeStatBoost(Statistic.Defense, 1, true, batchId);
|
||||
_pokemon?.ChangeStatBoost(Statistic.SpecialDefense, 1, true, batchId);
|
||||
_pokemon?.ChangeStatBoost(Statistic.Defense, 1, true, false, batchId);
|
||||
_pokemon?.ChangeStatBoost(Statistic.SpecialDefense, 1, true, false, batchId);
|
||||
StockpileCount++;
|
||||
}
|
||||
}
|
||||
@@ -40,8 +40,8 @@ public class StockpileEffect : Script
|
||||
return;
|
||||
}
|
||||
EventBatchId batchId = new();
|
||||
_pokemon.ChangeStatBoost(Statistic.Defense, (sbyte)-StockpileCount, true, batchId);
|
||||
_pokemon.ChangeStatBoost(Statistic.SpecialDefense, (sbyte)-StockpileCount, true, batchId);
|
||||
_pokemon.ChangeStatBoost(Statistic.Defense, (sbyte)-StockpileCount, true, false, batchId);
|
||||
_pokemon.ChangeStatBoost(Statistic.SpecialDefense, (sbyte)-StockpileCount, true, false, batchId);
|
||||
StockpileCount = 0;
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,6 @@ public class YawnEffect : Script
|
||||
_hasDoneFirstTurn = true;
|
||||
return;
|
||||
}
|
||||
_pokemon.SetStatus(ScriptUtils.ResolveName<Status.Sleep>());
|
||||
_pokemon.SetStatus(ScriptUtils.ResolveName<Status.Sleep>(), true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user