So I think I figure something out to this so wanted to post an update and so far its seems to be working. The only thing now is to figure it out for multiple forms. but here is what I change just in case anyone else was stuck like me (I'm not the creator of this, I'm just editing from the post above).
So in "PokeBattle_Battler" look for the line " def airborne?" and add the names above return to false.
def airborne?
return false if hasActiveItem?(:IRONBALL)
return false if @effects[PBEffects::Ingrain]
return false if @effects[PBEffects::SmackDown]
return false if @battle.field.effects[PBEffects::Gravity] > 0
return true if pbHasType?(:FLYING)
return true if hasActiveAbility?(:LEVITATE) &&
[email protected]
return true if hasActiveItem?(:AIRBALLOON)
return true if @effects[PBEffects::MagnetRise] > 0
return true if @effects[PBEffects::Telekinesis] > 0
return true if isSpecies?(:CHARIZARD)
return true if isSpecies?(:BEEDRILL)
return false
end
Then in "Battler_UseMove_SuccessChecks" look for the line "# Airborne-based immunity to Ground moves". I put the names above the Air Balloon line.
# Airborne-based immunity to Ground moves
if move.damagingMove? && move.calcType == :GROUND &&
target.airborne? && !move.hitsFlyingTargets?
if target.hasActiveAbility?(:LEVITATE) &&
[email protected]
@battle.pbShowAbilitySplash(target)
if PokeBattle_SceneConstants::USE_ABILITY_SPLASH
@battle.pbDisplay(_INTL("{1} avoided the attack!",target.pbThis))
else
@battle.pbDisplay(_INTL("{1} avoided the attack with {2}!",target.pbThis,target.abilityName))
end
@battle.pbHideAbilitySplash(target)
return false
end
if target.isSpecies?(:CHARIZARD) ||
target.isSpecies?(:BEEDRILL)
@battle.pbDisplay(_INTL("{1} avoided the attack!",target.pbThis))
return false
end
if target.hasActiveItem?(:AIRBALLOON)
@battle.pbDisplay(_INTL("{1}'s {2} makes Ground moves miss!",target.pbThis,target.itemName))
return false
end
Check in-game and it works. Again can't get it to check for different forms so if I do figure it out will make an edit. Hope this helps and hopefully, I'm not breaking rules by posting this.