mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
25 lines
325 B
Python
25 lines
325 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
combatSvc = core.combatService
|
|
|
|
if not target:
|
|
return
|
|
|
|
if not target.getClient():
|
|
return
|
|
|
|
if actor == target:
|
|
return
|
|
|
|
if not combatSvc.areInDuel(actor, target):
|
|
return
|
|
|
|
combatSvc.handleEndDuel(actor, target, True)
|
|
|
|
return
|
|
|