def occultism_chaosrays(line, time, backrefs): colors = backrefs[0] colors = colors.split(',') if len(colors) == 1: colors = colors[0].split(' and ') for color in colors: color = color.replace('and', '') color = color.strip() if color == 'orange': cures.affliction('paralysis') elif color == 'indigo': cures.affliction('stupidity') elif color == 'violet': if player.defences['speed'] == 1: defences.undef('speed') else: cures.affliction('aeon')
def puppetry_strip(line, time, backrefs): defence = player.def_names[backrefs[0]] defences.undef(defence)
def pear_function(line, time, backrefs): if "You choke" in line: player.keepup['pear'] = True else: player.keepup['pear'] = False defences.undef('pear')
def dragoncraft_breathstrip(line, time, backrefs): def1 = backrefs[4] def2 = backrefs[5] defences.undef(player.def_names[def1]) defences.undef(player.def_names[def2])
def erode(line, time, backrefs): core.disable_trigger('elementalism_erode', 'elementalism') core.disable_trigger('elementalism_lightning', 'elementalism') defence = player.def_names[backrefs[0]] defences.undef(defence)
def woodlore_lemming_strip(line, time, backrefs): defence = player.def_names[backrefs[0]] defences.undef(defence)
def undef_breathing(line, time, backrefs): defences.undef('breathing', False)
def undef(defence): defences.undef(defence)
def chivalry_raze_speed(line, time, backrefs): defences.undef('speed') player.defences['rebounding'] = 0
def falcon_strip(line, time, backrefs): core.disable_trigger('chivalry_falcon_strip', 'chivalry') if backrefs[0] in player.def_names.keys(): defence = player.def_names[backrefs[0]] defences.undef(defence)
def voicecraft_strip(line, time, backrefs): defence = player.def_names[backrefs[1]] defences.undef(defence)
def subterfuge_flay_sileris(line, time, backrefs): if player.waiting_for_sileris == 1: player.multi_flay = True defences.undef('sileris')