Files
NGECore2/scripts/buffs/co_stand_fast.py
T
Treeku d1fff9e069 Fixed buff duration check, fixed group buffs
- The duration needed to be set on the buff object "before "the buff is
actually added.  Because of this, I made the distinction between setup(0
(setting up the buff object) and add() (adding the buff stats to the
player).

- Group buffs would add the buff based on each individual player's
skillmods instead of the buffer's.  Due to this, I made a "buffer"
parameter for doAddBuff().  If there is a buffer, regardless of it's a
buffer within our group, we can specify them, otherwise provide null.
2014-03-22 02:07:53 +00:00

21 lines
923 B
Python

import sys
def setup(core, actor, buff):
if actor.getSkillMod('expertise_buff_duration_line_co_stand_fast'):
buff.setDuration(buff.getDuration() + actor.getSkillMod('expertise_buff_duration_line_co_stand_fast').getBase())
return
def add(core, actor, buff):
if actor.getSkillMod('expertise_damage_decrease_percentage'):
core.skillModService.addSkillMod(actor, 'damage_decrease_percentage', (60 + actor.getSkillMod('expertise_damage_decrease_percentage').getBase()) / 2)
else:
core.skillModService.addSkillMod(actor, 'damage_decrease_percentage', 60 / 2)
return
def remove(core, actor, buff):
if actor.getSkillMod('expertise_damage_decrease_percentage'):
core.skillModService.deductSkillMod(actor, 'damage_decrease_percentage', (60 + actor.getSkillMod('expertise_damage_decrease_percentage').getBase()) / 2)
else:
core.skillModService.deductSkillMod(actor, 'damage_decrease_percentage', 60 / 2)
return