Hi ^^

I have a question: Does somebody know what is used to calculate the damage a Pokémon deals with regular attacks in Mystery Dungeon? It might be its Attack stat, but how is the damage calculated? There must be some kind of formula for it...