diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-07-20 22:30:54 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-07-20 22:30:54 +0000 |
| commit | 96058e330b9a535ec3aecc40cfbd2fa74b791cd8 (patch) | |
| tree | 5afa3a01da6345b4f173e9578e0f7b0219cb9759 /pokemod/SpeciesMove.cpp | |
| parent | a44d3c2ebd20e05c7c574cd3a13888fc471067b9 (diff) | |
| download | sigen-96058e330b9a535ec3aecc40cfbd2fa74b791cd8.tar.gz sigen-96058e330b9a535ec3aecc40cfbd2fa74b791cd8.tar.xz sigen-96058e330b9a535ec3aecc40cfbd2fa74b791cd8.zip | |
[FIX] Slimmed up main() for pokemodr
[FIX] Cleaned up initializing TeamMember
[FIX] Hat fixed up
[ADD] Added ActionQueue (thread-safe QQueue)
[FIX] Arena classes fleshed out a bit
[ADD] ATBTimer class added to mediate the ATB counters
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@228 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/SpeciesMove.cpp')
| -rw-r--r-- | pokemod/SpeciesMove.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemod/SpeciesMove.cpp b/pokemod/SpeciesMove.cpp index 9c98f63b..0ae8401b 100644 --- a/pokemod/SpeciesMove.cpp +++ b/pokemod/SpeciesMove.cpp @@ -99,7 +99,7 @@ void Pokemod::SpeciesMove::setLevel(const int level) void Pokemod::SpeciesMove::setWild(const int wild) { - if (qobject_cast<const Pokemod*>(pokemod())->rules()->maxLevel() <= wild) + if (!wild || (qobject_cast<const Pokemod*>(pokemod())->rules()->maxLevel() <= wild)) { emit(error(bounds("wild"))); return; |
