More abilities
All checks were successful
Build / Build (push) Successful in 48s

This commit is contained in:
2025-06-09 13:44:26 +02:00
parent 00005aa4bf
commit 97868ab4c6
94 changed files with 829 additions and 150 deletions

View File

@@ -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);
}
}
}

View File

@@ -8,7 +8,7 @@ public class BeakBlastEffect : Script
{
if (move.UseMove.HasFlag("contact"))
{
move.User.SetStatus("burned");
move.User.SetStatus("burned", false);
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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 />

View File

@@ -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;
}
}

View File

@@ -31,6 +31,6 @@ public class YawnEffect : Script
_hasDoneFirstTurn = true;
return;
}
_pokemon.SetStatus(ScriptUtils.ResolveName<Status.Sleep>());
_pokemon.SetStatus(ScriptUtils.ResolveName<Status.Sleep>(), true);
}
}