fixed potions not working properly

need to test: vampire draining
This commit is contained in:
2024-07-15 10:35:28 -04:00
parent a97e30c8a7
commit 8e52309626
9 changed files with 12 additions and 10 deletions

View File

@ -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();