From 2c0a3866e09140d8d5ff84178decddc22db15778 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 6 Oct 2008 00:50:02 +0000 Subject: [FIX] Added single player option to Sigmod [FIX] Doxygen generation cleaned up [FIX] Can no longer override variables in the Sigmod if not a single player game [FIX] When checking for modified move priority, blean up afterwards git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@271 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigscript/MapEffectWrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sigscript/MapEffectWrapper.cpp') diff --git a/sigscript/MapEffectWrapper.cpp b/sigscript/MapEffectWrapper.cpp index 52bd4de9..c06d7c10 100644 --- a/sigscript/MapEffectWrapper.cpp +++ b/sigscript/MapEffectWrapper.cpp @@ -42,7 +42,7 @@ QString Sigscript::MapEffectWrapper::name() const QPoint Sigscript::MapEffectWrapper::coordinate() const { - if (hasValueOfType("coordinate")) + if (sigmod()->singlePlayer() && hasValueOfType("coordinate")) return valueOfType("coordinate"); return m_effect->coordinate(); } @@ -54,7 +54,7 @@ Sigscript::SkinWrapper* Sigscript::MapEffectWrapper::skin() bool Sigscript::MapEffectWrapper::isGhost() const { - if (hasValueOfType("ghost")) + if (sigmod()->singlePlayer() && hasValueOfType("ghost")) return valueOfType("ghost"); return m_effect->isGhost(); } -- cgit