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

* Changed artifact handling so bonuses from constituent artifacts in combinational ones are added implicitly.

* Discovered bug when attacking guarded visitables. Needs to wait before battle is over.
This commit is contained in:
OnionKnight
2010-05-09 19:10:59 +00:00
parent adbc142ff0
commit 87e66fff31
9 changed files with 105 additions and 73 deletions

View File

@@ -312,15 +312,16 @@ void SetHeroArtifacts::applyCl( CClient *cl )
if(!player)
return;
h->recreateArtBonuses();
player->heroArtifactSetChanged(h);
BOOST_FOREACH(Bonus *bonus, gained)
BOOST_FOREACH(Bonus bonus, gained)
{
player->heroBonusChanged(h,*bonus,true);
player->heroBonusChanged(h,bonus,true);
}
BOOST_FOREACH(Bonus *bonus, lost)
BOOST_FOREACH(Bonus bonus, lost)
{
player->heroBonusChanged(h,*bonus,false);
player->heroBonusChanged(h,bonus,false);
}
}