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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user