- fixed a Zombie Master bug
- fixed a graveyard bug
This commit is contained in:
@@ -848,7 +848,7 @@ public:
|
|||||||
if (ability != -1 && card->basicAbilities[ability]) card->basicAbilities[ability] -=1;
|
if (ability != -1 && card->basicAbilities[ability]) card->basicAbilities[ability] -=1;
|
||||||
if (regenCost){
|
if (regenCost){
|
||||||
if(regenerations.find(card) != regenerations.end()){
|
if(regenerations.find(card) != regenerations.end()){
|
||||||
game->removeObserver(regenerations[card]);
|
if (game->isInPlay(card)) game->removeObserver(regenerations[card]);
|
||||||
regenerations.erase(card);
|
regenerations.erase(card);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#define STATE_FIRST_TIME 4
|
#define STATE_FIRST_TIME 4
|
||||||
#define STATE_WARNING 5
|
#define STATE_WARNING 5
|
||||||
|
|
||||||
#define GAME_VERSION "WTH?! 0.2.1 - by WilLoW"
|
#define GAME_VERSION "WTH?! 0.2.2 - by WilLoW"
|
||||||
#define ALPHA_WARNING 0
|
#define ALPHA_WARNING 0
|
||||||
|
|
||||||
class GameStateMenu: public GameState, public JGuiListener
|
class GameStateMenu: public GameState, public JGuiListener
|
||||||
|
|||||||
@@ -106,9 +106,9 @@ void CardDisplay::CheckUserInput(float dt){
|
|||||||
{
|
{
|
||||||
int n = mCurr;
|
int n = mCurr;
|
||||||
n++;
|
n++;
|
||||||
|
if (n>= mCount){n = mCount-1;}
|
||||||
if (n>= start_item + nb_displayed_items){
|
if (n>= start_item + nb_displayed_items){
|
||||||
if (n>= mCount){n = mCount-1;}
|
rotateRight();
|
||||||
else{ rotateRight();}
|
|
||||||
}
|
}
|
||||||
if (n != mCurr && mObjects[mCurr] != NULL && mObjects[mCurr]->Leaving(PSP_CTRL_RIGHT)){
|
if (n != mCurr && mObjects[mCurr] != NULL && mObjects[mCurr]->Leaving(PSP_CTRL_RIGHT)){
|
||||||
mCurr = n;
|
mCurr = n;
|
||||||
|
|||||||
Reference in New Issue
Block a user