From 2b628fecef0aad441a2dd1b39c310e00851574d9 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Thu, 14 Oct 2010 13:24:45 -0400 Subject: [PATCH] U-Turn/Baton Pass trigger slower Pursuits, and "pHazing" removes trapping effects. Fixes issue #373. --- src/scripting/PokemonObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/PokemonObject.cpp b/src/scripting/PokemonObject.cpp index b9bec11..de1c1c9 100644 --- a/src/scripting/PokemonObject.cpp +++ b/src/scripting/PokemonObject.cpp @@ -555,7 +555,7 @@ JSBool isSelectable(JSContext *cx, JSBool switchOut(JSContext *cx, JSObject *obj, uintN /*argc*/, jsval * /*argv*/, jsval * /*ret*/) { Pokemon *p = (Pokemon *)JS_GetPrivate(cx, obj); - p->switchOut(); + p->getField()->withdrawPokemon(p); return JS_TRUE; }