mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
Officer - Fixed buff duration and errors
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_buff_duration_line_of_group_buff'):
|
||||
buff.setDuration(buff.getDuration() + actor.getSkillModBase('expertise_buff_duration_line_of_group_buff'))
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 0:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 2:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 1:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 1:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 1:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 1:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 1:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_aura_maintain'):
|
||||
if actor.getSkillModBase('expertise_aura_maintain') > 1:
|
||||
buff.setDuration(-1)
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
if actor.getSkillMod('expertise_buff_duration_line_of_group_buff'):
|
||||
buff.setDuration(buff.getDuration() + actor.getSkillModBase('expertise_buff_duration_line_of_group_buff'))
|
||||
return
|
||||
|
||||
def add(core, actor, buff):
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_1')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_1')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_1')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_2')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_2')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_2')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_3')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_3')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_3')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_4')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_4')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_4')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_5')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_5')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_5')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_6')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_6')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_6')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_7')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_7')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_7')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_8')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_8')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_8')
|
||||
return
|
||||
|
||||
@@ -4,9 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_buff_def_9')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_buff_def_9')
|
||||
core.buffService.addGroupBuff(actor, 'of_buff_def_9')
|
||||
return
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_charge_1')
|
||||
core.buffService.addGroupBuff(actor, 'of_charge_1')
|
||||
return
|
||||
|
||||
@@ -4,11 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_focus_fire_1')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
if group is not None:
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_focus_fire_1')
|
||||
return
|
||||
core.buffService.addGroupBuff(actor, 'of_focus_fire_1')
|
||||
return
|
||||
|
||||
@@ -4,11 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_focus_fire_2')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
if group is not None:
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_focus_fire_2')
|
||||
return
|
||||
core.buffService.addGroupBuff(actor, 'of_focus_fire_2')
|
||||
return
|
||||
|
||||
@@ -4,11 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_focus_fire_3')
|
||||
group = core.objectService.getObject(actor.getGroupId())
|
||||
if group is not None:
|
||||
for creature in group.getMemberList():
|
||||
core.buffService.addBuffToCreature(creature, 'of_focus_fire_3')
|
||||
return
|
||||
core.buffService.addGroupBuff(actor, 'of_focus_fire_3')
|
||||
return
|
||||
|
||||
@@ -4,5 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_focus_fire_1')
|
||||
return
|
||||
core.buffService.addGroupBuff(actor, 'of_focus_fire_4')
|
||||
return
|
||||
|
||||
@@ -4,5 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_focus_fire_1')
|
||||
return
|
||||
core.buffService.addGroupBuff(actor, 'of_focus_fire_5')
|
||||
return
|
||||
|
||||
@@ -4,5 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_focus_fire_1')
|
||||
return
|
||||
core.buffService.addGroupBuff(actor, 'of_focus_fire_6')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user