The best moves for Gastly are Lick and Sludge Bomb when attacking Pokémon in Gyms. This move combination has the highest total DPS and is also the best moveset for PVP battles.