-fix issue 48 (dragon claw endless ability list)
-switched incorrect unsigned int to size_t
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-25 15:35:19 +00:00
parent d7e1e73ca3
commit ac120266a9
4 changed files with 42 additions and 10 deletions

View File

@@ -135,6 +135,7 @@ public:
mClone = NULL;
}
void Update(float dt){
MTGAbility::Update(dt);
if (!triggered){
@@ -150,15 +151,12 @@ public:
}
int testDestroy(){
if (triggered){
if (game->mLayers->actionLayer()->menuObject) return 0;
if (game->mLayers->actionLayer()->getIndexOf(mClone) !=-1) return 0;
if (game->mLayers->actionLayer()->getIndexOf(this) !=-1) return 0;
OutputDebugString("Destroy!\n");
return 1;
}
return 0;
if (!triggered) return 0;
if (game->mLayers->actionLayer()->menuObject) return 0;
if (game->mLayers->actionLayer()->getIndexOf(mClone) !=-1) return 0;
//if (game->mLayers->actionLayer()->getIndexOf(this) !=-1) return 0;
OutputDebugString("Destroy!\n");
return 1;
}
int isReactingToTargetClick(Targetable * card){