1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

- Added and improved some propagators, including Crystal Dragons ability (#1232)

- Minor refactoring in AI
This commit is contained in:
DjWarmonger
2014-03-29 21:39:19 +00:00
parent 791099ab33
commit 8683c8c0eb
6 changed files with 17 additions and 9 deletions

View File

@ -947,7 +947,7 @@ void CGHeroInstance::initObj()
{
blockVisit = true;
auto hs = new HeroSpecial();
hs->setNodeType(CBonusSystemNode::specialty);
hs->setNodeType(CBonusSystemNode::SPECIALTY);
attachTo(hs); //do we ever need to detach it?
if(!type)
@ -1137,7 +1137,7 @@ void CGHeroInstance::initObj()
auto hs = new HeroSpecial();
attachTo(hs); //do we ever need to detach it?
hs->setNodeType(CBonusSystemNode::specialty);
hs->setNodeType(CBonusSystemNode::SPECIALTY);
for (auto bonus : hs2.bonuses)
{
hs->addNewBonus (bonus);