mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
AI function code rewrites, added Shadow Sky's missing effects, fixed Shadow End's recoil damage
This commit is contained in:
@@ -546,6 +546,7 @@ class Battle::AI::AIMove
|
||||
# 2 = additional effect will work
|
||||
# 3 = additional effect has an increased chance to work
|
||||
def additional_effect_usability(user, target)
|
||||
return 3 if self.function == "ThrowUserItemAtTarget"
|
||||
return 0 if @move.addlEffect == 0 # Doesn't have an additional effect
|
||||
return 1 if target.has_active_ability?(:SHIELDDUST) && !@ai.battle.moldBreaker
|
||||
return 3 if (Settings::MECHANICS_GENERATION >= 6 || self.function != "EffectDependsOnEnvironment") &&
|
||||
|
||||
Reference in New Issue
Block a user