Files
Treeku 918520052b 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'
2014-08-24 02:00:43 +01:00

16 lines
303 B
Python

import sys
def setup():
return
def run(core, actor, target, 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