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

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