exports.BattleAbilities = {
	arenatrap: {
		inherit: true,
		onFoeModifyPokemon: function(pokemon) {
			if (!pokemon.hasType('Flying') && pokemon.runImmunity('Ground', false)) {
				pokemon.tryTrap();
			}
		},
		onFoeMaybeTrapPokemon: function(pokemon) {
			if (!pokemon.hasType('Flying') && pokemon.runImmunity('Ground', false)) {
				pokemon.maybeTrapped = true;
			}
		}
	}
};

Fix Arena Trap on Inverse Battle Arena Trap still does not trap Flying-types on Inverse Battle.
Fix Arena Trap on Inverse Battle
Arena Trap still does not trap Flying-types on Inverse Battle.
