mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Merge pull request #220 from Ziggeh/master
Fixed some officer buffs and a permanent buff duration issue
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,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_drillmaster_1')
|
||||
core.buffService.addGroupBuff(actor, 'of_drillmaster_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
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_inspiration_1')
|
||||
core.buffService.addGroupBuff(actor, 'of_inspiration_1')
|
||||
return
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_inspiration_2')
|
||||
core.buffService.addGroupBuff(actor, 'of_inspiration_2')
|
||||
return
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_inspiration_3')
|
||||
core.buffService.addGroupBuff(actor, 'of_inspiration_3')
|
||||
return
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_inspiration_4')
|
||||
core.buffService.addGroupBuff(actor, 'of_inspiration_4')
|
||||
return
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_inspiration_5')
|
||||
core.buffService.addGroupBuff(actor, 'of_inspiration_5')
|
||||
return
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_inspiration_6')
|
||||
core.buffService.addGroupBuff(actor, 'of_inspiration_6')
|
||||
return
|
||||
|
||||
@@ -4,6 +4,6 @@ def setup(core, actor, buff):
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.buffService.addBuffToCreature(actor, 'of_scatter_1')
|
||||
core.buffService.addGroupBuff(actor, 'of_scatter_1')
|
||||
return
|
||||
|
||||
@@ -97,10 +97,9 @@ public class BuffService implements INetworkDispatch {
|
||||
} else {
|
||||
buff.setStacks(buff.getMaxStacks());
|
||||
}
|
||||
|
||||
if (otherBuff.getRemainingDuration() > buff.getDuration() && otherBuff.getStacks() >= otherBuff.getMaxStacks()) {
|
||||
return null;
|
||||
}
|
||||
if (buff.getDuration() != -1.0)
|
||||
if (otherBuff.getRemainingDuration() > buff.getDuration() && otherBuff.getStacks() >= otherBuff.getMaxStacks())
|
||||
return null;
|
||||
}
|
||||
|
||||
removeBuffFromCreature(creature, otherBuff);
|
||||
|
||||
Reference in New Issue
Block a user