fixed potions not working properly
need to test: vampire draining
This commit is contained in:
@ -67,7 +67,7 @@ void character::discard_level_effects() {
|
||||
tmp.reserve(effects.size());
|
||||
|
||||
for (auto p : effects)
|
||||
if (p->get_duration() != -1)
|
||||
if (p->get_duration() > 0)
|
||||
tmp.push_back(p);
|
||||
|
||||
tmp.shrink_to_fit();
|
||||
|
Reference in New Issue
Block a user