Files
NGECore2/scripts/commands/me_buff_health_2.py
T

19 lines
483 B
Python

import sys
def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
group = core.objectService.getObject(actor.getGroupId())
if target and target.getSlottedObject("ghost"):
if group and target in group.getMemberList():
core.buffService.addGroupBuff(target, 'me_buff_health', actor)
else:
core.buffService.addBuffToCreature(target, 'me_buff_health', actor)
else:
core.buffService.addGroupBuff(actor, 'me_buff_health', actor)
return