Skip to content

Commit

Permalink
Fix kraken lake generation issue caused by not initializing their swi…
Browse files Browse the repository at this point in the history
…mming skill before being placed
  • Loading branch information
miki151 committed Apr 4, 2023
1 parent 497e222 commit 6998564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,8 @@ bool Creature::removePermanentEffect(BuffId id, int count, bool msg, const Conte
}

bool Creature::isAffected(BuffId id) const {
return buffCount.count(id) || buffPermanentCount.count(id);
// Check attributes->permanentBuffs in case this is before they were copied over in tick()
return buffCount.count(id) || buffPermanentCount.count(id) || attributes->permanentBuffs.contains(id);
}

bool Creature::isAffectedPermanently(BuffId id) const {
Expand Down

0 comments on commit 6998564

Please sign in to comment.