mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
28 lines
420 B
Python
28 lines
420 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
combatSvc = core.combatService
|
|
|
|
if not target:
|
|
return
|
|
|
|
if actor.getPosture() == 13 or actor.getPosture() == 14:
|
|
return
|
|
|
|
if not target.getPosture() == 13:
|
|
return
|
|
|
|
if not target.isAttackableBy(actor):
|
|
return
|
|
|
|
if not target.inRange(actor.getPosition(), 5):
|
|
return
|
|
|
|
combatSvc.deathblowPlayer(actor, target)
|
|
|
|
return
|
|
|