From 2f6a73d7c710fa767dde482d0b32cd6bc8cf795f Mon Sep 17 00:00:00 2001 From: Elias Pschernig Date: Wed, 18 Apr 2007 19:21:34 +0000 Subject: [PATCH] Added support for querying poison special of attacks to the Python API. (bug #8950) --- src/ai_python.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ai_python.cpp b/src/ai_python.cpp index 0dc63fb55c0..681e0ee246d 100644 --- a/src/ai_python.cpp +++ b/src/ai_python.cpp @@ -277,6 +277,7 @@ at_get_ability_by_id( "i", marksman ) at_get_ability_by_id( "i", magical ) at_get_ability_by_id( "i", charge ) at_get_ability_by_id( "i", drains ) +at_get_ability_by_id( "i", poison ) at_get_string_prop( name ) at_get_string_prop( range ) @@ -305,6 +306,7 @@ static PyGetSetDef attacktype_getseters[] = { at_gs( magical, "This attack is magical." ) at_gs( charge, "This attack has the 'charge' special." ) at_gs( drains, "This attack has the 'drains' special." ) + at_gs( poison, "This attack has the 'poison' special." ) at_gs( range, "String with the name of the attack range." ) { NULL, NULL, NULL, NULL, NULL } };