9 lines
358 B
ActionScript
9 lines
358 B
ActionScript
|
namespace Gen7 {
|
||
|
[Move effect=PreventFoeRunning]
|
||
|
shared class PreventFoeRunning : PkmnScript {
|
||
|
void OnSecondaryEffect(ExecutingMove@ move, Pokemon@ target, uint8 hit) override {
|
||
|
auto script = cast<PreventFoeRunningEffect>(move.User.AddVolatile("PreventFoeRunning"));
|
||
|
script.SetLockedOpponent(target);
|
||
|
}
|
||
|
}
|
||
|
}
|