More abilities
Build / Build (push) Successful in 48s

This commit is contained in:
Deukhoofd committed 2025-06-09 13:44:26 +02:00
1 parent 00005aa4bf
commit 97868ab4c6
94 files changed
+829 -150

No files matched your search

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