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

Use json configuration for special spell effect duration

This commit is contained in:
AlexVinS
2015-09-14 13:22:23 +03:00
parent 3c053e5dd5
commit 3ed3f1fa13
3 changed files with 37 additions and 27 deletions

View File

@ -848,10 +848,10 @@ void CStack::stackEffectToFeature(std::vector<Bonus> & sf, const Bonus & sse)
for(Bonus& b : tmp)
{
b.turnsRemain = sse.turnsRemain;
if(b.turnsRemain == 0)
b.turnsRemain = sse.turnsRemain;
sf.push_back(b);
}
}
bool CStack::willMove(int turn /*= 0*/) const