Officer - Fixed buff duration and errors

This commit is contained in:
Ziggeh
2014-03-23 02:59:25 +01:00
parent a3e7b10372
commit ac7136edc7
34 changed files with 75 additions and 61 deletions
+4
View File
@@ -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):
+2
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+3
View File
@@ -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):
+2
View File
@@ -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 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -4
View File
@@ -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
+1 -1
View File
@@ -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
+1 -6
View File
@@ -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
+1 -6
View File
@@ -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
+1 -6
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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