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

Fixed Death Stare of Commanders, additional tweaks.

This commit is contained in:
DjWarmonger
2013-03-30 20:09:50 +00:00
parent a9fe9e9e8b
commit c8bb363a45
8 changed files with 30 additions and 6 deletions

View File

@ -918,6 +918,14 @@ ui32 CStack::Speed( int turn /*= 0*/ , bool useBind /* = false*/) const
return speed;
}
ui32 CStack::level() const
{
if (base)
return base->getLevel(); //creatture or commander
else
return std::max(1, (int)getCreature()->level); //war machine, clone etc
}
si32 CStack::magicResistance() const
{
si32 magicResistance;