Erwan
- fix issue 310 (exalted) - fix issue 312 (heap corruption)
This commit is contained in:
@@ -16,6 +16,7 @@ generic/equip_wither.txt
|
|||||||
generic/equipment_i252.txt
|
generic/equipment_i252.txt
|
||||||
generic/exalted.txt
|
generic/exalted.txt
|
||||||
generic/exalted_i143.txt
|
generic/exalted_i143.txt
|
||||||
|
generic/exalted_i310.txt
|
||||||
generic/fear.txt
|
generic/fear.txt
|
||||||
generic/fear_i147.txt
|
generic/fear_i147.txt
|
||||||
generic/first_and_double_strike1_i187.txt
|
generic/first_and_double_strike1_i187.txt
|
||||||
|
|||||||
19
projects/mtg/bin/Res/test/generic/exalted_i310.txt
Normal file
19
projects/mtg/bin/Res/test/generic/exalted_i310.txt
Normal 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]
|
||||||
@@ -1564,6 +1564,7 @@ class AExalted:public TriggeredAbility{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nbattackers == 1) return 1;
|
if (nbattackers == 1) return 1;
|
||||||
|
else luckyWinner = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -145,11 +145,13 @@ void GameStateShop::Update(float dt)
|
|||||||
// mParent->effect->UpdateSmall(dt);
|
// mParent->effect->UpdateSmall(dt);
|
||||||
// mParent->effect->UpdateBig(dt);
|
// mParent->effect->UpdateBig(dt);
|
||||||
u32 btn;
|
u32 btn;
|
||||||
|
if (menu){
|
||||||
|
menu->Update(dt);
|
||||||
|
if (menu->closed) SAFE_DELETE(menu);
|
||||||
|
}
|
||||||
switch(mStage){
|
switch(mStage){
|
||||||
case STAGE_SHOP_MENU:
|
case STAGE_SHOP_MENU:
|
||||||
if (menu){
|
if (!menu){
|
||||||
menu->Update(dt);
|
|
||||||
}else{
|
|
||||||
menu = NEW SimpleMenu(11,this,Constants::MENU_FONT,SCREEN_WIDTH/2-100,20);
|
menu = NEW SimpleMenu(11,this,Constants::MENU_FONT,SCREEN_WIDTH/2-100,20);
|
||||||
menu->Add(12,"Save & Back to Main Menu");
|
menu->Add(12,"Save & Back to Main Menu");
|
||||||
menu->Add(14,"See available tasks");
|
menu->Add(14,"See available tasks");
|
||||||
@@ -158,7 +160,6 @@ void GameStateShop::Update(float dt)
|
|||||||
break;
|
break;
|
||||||
case STAGE_SHOP_TASKS:
|
case STAGE_SHOP_TASKS:
|
||||||
if(menu){
|
if(menu){
|
||||||
menu->Update(dt);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(taskList){
|
if(taskList){
|
||||||
@@ -263,6 +264,6 @@ void GameStateShop::ButtonPressed(int controllerId, int controlId)
|
|||||||
default:
|
default:
|
||||||
mStage = STAGE_SHOP_SHOP;
|
mStage = STAGE_SHOP_SHOP;
|
||||||
}
|
}
|
||||||
SAFE_DELETE(menu);
|
if (menu) menu->Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user