|
namespace Gen7 {
|
|
[Ability effect=PreventDefLowering]
|
|
class PreventDefLowering : PkmnScript {
|
|
void PreventStatBoostChange(Pokemon@, Statistic stat, int8 amount, bool &inout prevent) override {
|
|
if (stat == Statistic::Defense && amount < 0) {
|
|
prevent = true;
|
|
}
|
|
}
|
|
}
|
|
} |