Mchapuis / RPG

team project for school
0 stars 1 forks source link

BUG: #1 #11

Closed Mchapuis closed 7 years ago

Mchapuis commented 7 years ago

Hey so, I don't know if I am doing this right, but at the function discardActivePokemon() I have an exception being thrown because the array seems to be null. The cm_test is a CardManager.

// Check what happens if an active pokemon has
// no energy and we try to discard it

PokemonCard myActivePokemon_test = new PokemonCard();
cm_test.setActivePokemon(myActivePokemon_test);
cm_test.discardActivePokemon();

Anyone has an idea of what is going on?

Mchapuis commented 7 years ago

Hello, so this issue will be closed since the problem was unused variables