mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix for Portal of Summoning. (ID is type of object, id is position of object instance in the map vector of object instances)
Most correct way of getting visitable position ;)
This commit is contained in:
@@ -732,10 +732,10 @@ DLL_EXPORT void HeroLevelUp::applyGs( CGameState *gs )
|
||||
}
|
||||
switch (it->subtype)
|
||||
{
|
||||
case 1:
|
||||
it->val = (level * (*creatures)[it->additionalInfo]->attack)/creLevel /20;
|
||||
case 1:
|
||||
it->val = (level * (*creatures)[it->additionalInfo]->attack)/creLevel /20;
|
||||
break;
|
||||
case 2:
|
||||
case 2:
|
||||
it->val = (level * (*creatures)[it->additionalInfo]->defence)/creLevel /20;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user