I have a question regarding Weakness and resistance, recently I was playing and a friend had a Dark Tyranitar (The Dark/Fighting one) and I had a Gengar Ex, he was going to attack and when the damage was going to be applied the game stopped, Gengar Ex has Weakness to Darkness but Resistance to fightning, We didn't knew how to apply the Damage and the game stopped. I would like to know how is Damage applied in a case like this where the defending pokemon has both Weakness and resistance to both types of the attacking pokemon.