mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
25 lines
628 B
Python
25 lines
628 B
Python
import sys
|
|
from services.command import CombatCommand
|
|
|
|
def setup(core, actor, buff):
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
combatSvc = core.combatService
|
|
|
|
weapon = core.objectService.getObject(actor.getWeaponId())
|
|
|
|
if not weapon:
|
|
weapon = actor.getSlottedObject('default_weapon')
|
|
|
|
command = core.commandService.getCommandByName('me_reckless_stimulation_2')
|
|
|
|
if not combatSvc.applySpecialCost(actor, weapon, CombatCommand('me_reckless_stimulation_2')):
|
|
return
|
|
|
|
actor.playEffectObject('clienteffect/medic_reckless_stimulation.cef', 'root')
|
|
actor.setAction(actor.getAction() + 1500)
|
|
|
|
return
|
|
|