2021-05-13 12:32:56 +00:00
|
|
|
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){
|
2021-10-23 12:20:18 +00:00
|
|
|
auto party = battleParty.Party.Pokemon;
|
|
|
|
for (uint64 i = 0; i < party.Length; i++){
|
|
|
|
auto m = party[i];
|
2021-05-13 12:32:56 +00:00
|
|
|
if (m !is null){
|
|
|
|
m.ClearStatus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|