summaryrefslogtreecommitdiffstats
path: root/sigencore/Creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigencore/Creature.cpp')
-rw-r--r--sigencore/Creature.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sigencore/Creature.cpp b/sigencore/Creature.cpp
index 9e9ef34d..f6a0dc80 100644
--- a/sigencore/Creature.cpp
+++ b/sigencore/Creature.cpp
@@ -662,7 +662,8 @@ void Creature::completeMoves()
for (int i = 0; i < m_species->moveCount(); ++i)
{
SpeciesMoveWrapper* move = m_species->move(i);
- const int level = move->level();
+ bool isWild = false;
+ const int level = (valueOfType("wild", &isWild) && isWild) ? move->wild() : move->level();
if ((0 <= level) && (level <= m_level))
moves[level] = move->move();
}