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