20 lines
677 B
ActionScript
20 lines
677 B
ActionScript
namespace Gen7 {
|
|
[Move effect=CurePartyStatus]
|
|
shared class CurePartyStatus : PkmnScript{
|
|
void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit) override {
|
|
auto user = attack.User;
|
|
user.ClearStatus();
|
|
|
|
auto battleParty = user.Battle.FindPartyForPokemon(user);
|
|
if (battleParty !is null){
|
|
auto party = battleParty.Party.Pokemon;
|
|
for (uint64 i = 0; i < party.Length; i++){
|
|
auto m = party[i];
|
|
if (m !is null){
|
|
m.ClearStatus();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |