Change your preferences here.
Doubles in power if the target was the last Pokémon to damage the user this turn with a move other than Pain Split.
Avalanche is an Ice-type equivalent. Payback is a weaker, Dark-type equivalent. It does not, however, have negative priority.