Existing problems:
1.codes for triggerSpeedCalc and triggerWeightCalc are still not corrected though.
2.hasActiveAbility? is broken when checking a pokemon's ability, since the first element of abilityMutationList is a MultiAbilityProxy, and you can directly check self.ability == check_ability...
There still remains some other bugs/mistakes not reported though.
The plugin names used in self.dbk_enabled?(plugin) isn't correct, and Settings::ZMOVE_TRIGGER_KEY never exist in Z-Power plugin.
Should be the one below.
# Check if DBK plugin is enabled
def self.dbk_enabled?(plugin)...