- Yet another attempt at fixing counterspells. Needs testing
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-10 13:31:33 +00:00
parent 62f6b92332
commit ab48516788
4 changed files with 68 additions and 8 deletions

View File

@@ -502,6 +502,7 @@ void ActionStack::Update(float dt){
TargetChooser * tc = game->getCurrentTargetChooser();
int newState = game->getCurrentGamePhase();
currentState = newState;
if (!tc) checked = 0;
//Select Stack's display mode
if (mode==ACTIONSTACK_STANDARD && tc && !checked){
@@ -509,15 +510,16 @@ void ActionStack::Update(float dt){
unpackDamageStacks();
for (int i = 0; i < mCount ; i++){
Interruptible * current = (Interruptible *)mObjects[i];
OutputDebugString("OH MY GOD, TAARGET MODE!\n");
if (tc->canTarget(current)){
if (mObjects[mCurr]) mObjects[mCurr]->Leaving(PSP_CTRL_UP);
current->display = 1;
mCurr = i;
mObjects[mCurr]->Entering();
mode=ACTIONSTACK_TARGET;
modal = 1;
if (mObjects[mCurr]) mObjects[mCurr]->Leaving(PSP_CTRL_UP);
current->display = 1;
mCurr = i;
mObjects[mCurr]->Entering();
mode=ACTIONSTACK_TARGET;
modal = 1;
}else{
current->display = 0;
current->display = 0;
}
}
if (mode != ACTIONSTACK_TARGET){