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