1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

* support for spell resistance, including secondary skill (resistance) and new artifacts (Garniture of Interference, Surcoat of Counterpoise, Boots of Polarity) and unit's resistance (such as dwarfs' resistance)

This commit is contained in:
mateuszb
2009-07-26 12:15:38 +00:00
parent 0d408bc6c2
commit 27dda485a4
5 changed files with 67 additions and 8 deletions

View File

@ -519,6 +519,9 @@ CStack::CStack(CCreature * C, int A, int O, int I, bool AO, int S)
ui32 CStack::Speed() const
{
if(hasFeatureOfType(StackFeature::SIEGE_WEAPON)) //war machnes cannot move
return 0;
int speed = creature->speed;
speed += valOfFeatures(StackFeature::SPEED_BONUS);