1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

* new spells: resurrection, animate dead

* a lot of minor fixes in battles
* resolution & depth in settings.txt reverted to 800x600 and 24bpp
This commit is contained in:
mateuszb
2009-08-05 12:46:08 +00:00
parent 64f098017b
commit 507597301f
17 changed files with 199 additions and 112 deletions

View File

@@ -434,6 +434,17 @@ void BattleResultsApplied::applyCl( CClient *cl )
INTERFACE_CALL_IF_PRESENT(player2,battleResultsApplied);
}
void StacksHealedOrResurrected::applyCl( CClient *cl )
{
std::vector<std::pair<ui32, ui32>> shiftedHealed;
for(int v=0; v<healedStacks.size(); ++v)
{
shiftedHealed.push_back(std::make_pair(healedStacks[v].stackID, healedStacks[v].healedHP));
}
INTERFACE_CALL_IF_PRESENT(GS(cl)->curB->side1, battleStacksHealedRes, shiftedHealed);
INTERFACE_CALL_IF_PRESENT(GS(cl)->curB->side2, battleStacksHealedRes, shiftedHealed);
}
CGameState* CPackForClient::GS( CClient *cl )
{
return cl->gs;