mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-12 22:45:31 -04:00
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'
This commit is contained in:
@@ -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
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user