我收到此代码错误。当我使用战斗命令时,我正在尝试添加一个增益。它似乎只是被缩进错误弄乱了。我正在重新制作游戏星球大战星系。
代码
import sys
def setup(core, actor, target, command):
command.setBuffNameTarget('of_deb_def_1')
if actor.getSkill('expertise_of_advanced_paint_1'):
command.setBuffNameTarget('of_adv_paint_debuff_1')
if actor.getSkill('expertise_of_paint_expose_1'):
command.setBuffNameTarget('of_adv_paint_expose_1')
return
def preRun(core, actor, target, command):
return
def run(core, actor, target, commandString):
return
错误
File "scripts/commands/combat/of_deb_def_1.py", line 5
if actor.getSkill('expertise_of_advanced_paint_1'):
^
IndentationError: unindent does not match any outer indentation level
^
是我得到的错误。