10 lines
341 B
ActionScript
10 lines
341 B
ActionScript
|
namespace Gen7 {
|
||
|
[Ability effect=PreventStatLowering]
|
||
|
class PreventStatLowering : PkmnScript {
|
||
|
void PreventStatBoostChange(Pokemon@, Statistic stat, int8 amount, bool selfInflicted, bool &inout prevent) override {
|
||
|
if (amount < 0 && !selfInflicted) {
|
||
|
prevent = true;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|