- fix issue 310 (exalted)
- fix issue 312 (heap corruption)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-02-04 13:28:04 +00:00
parent ba11d414a5
commit ab9366f035
4 changed files with 27 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ generic/equip_wither.txt
generic/equipment_i252.txt
generic/exalted.txt
generic/exalted_i143.txt
generic/exalted_i310.txt
generic/fear.txt
generic/fear_i147.txt
generic/first_and_double_strike1_i187.txt

View File

@@ -0,0 +1,19 @@
#NAME: Exalted i143
#DESC: Exalted creature gets negaive bonus if it didn't attack alone
#see http://code.google.com/p/wagic/issues/detail?id=310
[INIT]
combatattackers
[PLAYER1]
inplay:raging goblin,akrasan squire
[PLAYER2]
[DO]
raging goblin
akrasan squire
eot
[ASSERT]
untap
[PLAYER1]
inplay:raging goblin,akrasan squire
[PLAYER2]
life:18
[END]

View File

@@ -1564,6 +1564,7 @@ class AExalted:public TriggeredAbility{
}
}
if (nbattackers == 1) return 1;
else luckyWinner = NULL;
}
}
return 0;

View File

@@ -145,11 +145,13 @@ void GameStateShop::Update(float dt)
// mParent->effect->UpdateSmall(dt);
// mParent->effect->UpdateBig(dt);
u32 btn;
if (menu){
menu->Update(dt);
if (menu->closed) SAFE_DELETE(menu);
}
switch(mStage){
case STAGE_SHOP_MENU:
if (menu){
menu->Update(dt);
}else{
if (!menu){
menu = NEW SimpleMenu(11,this,Constants::MENU_FONT,SCREEN_WIDTH/2-100,20);
menu->Add(12,"Save & Back to Main Menu");
menu->Add(14,"See available tasks");
@@ -158,7 +160,6 @@ void GameStateShop::Update(float dt)
break;
case STAGE_SHOP_TASKS:
if(menu){
menu->Update(dt);
return;
}
if(taskList){
@@ -263,6 +264,6 @@ void GameStateShop::ButtonPressed(int controllerId, int controlId)
default:
mStage = STAGE_SHOP_SHOP;
}
SAFE_DELETE(menu);
if (menu) menu->Close();
}
}