This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user