Adds more abilities

This commit is contained in:
2021-11-20 15:31:52 +01:00
parent 57e5e03dc3
commit 7d6017dfeb
8 changed files with 87 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
namespace Gen7 {
class AuraBreak : PkmnScript {
void OverrideBasePower(ExecutingMove@ move, Pokemon@, uint8, uint8 &inout power){
auto typeLib = move.User.Battle.Library.StaticLibrary.TypeLibrary;
auto fairyType = typeLib.GetTypeId("fairy");
auto darkType = typeLib.GetTypeId("dark");
if (move.UseMove.Type == fairyType || move.UseMove.Type == darkType){
power = uint8(power * 0.75f);
}
}
}
}