From 918520052b8a41bb5fff970103644e2e4c8f7439 Mon Sep 17 00:00:00 2001 From: Treeku Date: Sun, 24 Aug 2014 02:00:43 +0100 Subject: [PATCH] Fixed issue where you couldn't remove your buffs. Fixes: Traceback (most recent call last): File "scripts/commands/removebuff.py", line 8, in run buffObj = actor.getBuffByCRC(int(commandString)) AttributeError: 'resources.objects.creature.CreatureObject' object has no attribute 'getBuffByCRC' --- scripts/commands/removeBuff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/commands/removeBuff.py b/scripts/commands/removeBuff.py index cd63145f..78354992 100644 --- a/scripts/commands/removeBuff.py +++ b/scripts/commands/removeBuff.py @@ -5,11 +5,11 @@ def setup(): def run(core, actor, target, commandString): - buffObj = actor.getBuffByCRC(int(commandString)) + buffObj = actor.getBuffList().get(int(commandString)) if buffObj is None: return if buffObj.isRemovableByPlayer() and buffObj.isDebuff() is False: core.buffService.removeBuffFromCreature(actor, buffObj) - return \ No newline at end of file + return