def health_after_attacks(n, h_0, m, a, method):
    """ Calculates the health of an opponent after a certain number of attacks.
		@param n The number of turns to attack for.
		@param h_0 The initial health of the opponent.
		@param m The max hit of the attacker.
		@param a The accuracy of the attacker.
		@param method The calculation method. @see successful_hits.py. """
    assert 0 <= a <= 1, a
    return method.h(n * a, h_0, m)
