Explorar o código

fix playersword

detopoi hai 1 ano
pai
achega
97cfa151e3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      game/skill/skill.py

+ 1 - 1
game/skill/skill.py

@@ -1436,7 +1436,7 @@ class PlayerSword5x5(Skill):
                 if abs(to.x - self.user.x) < 3 and abs(to.y - self.user.y) < 3 and (abs(to.x - self.user.x) + abs(to.y - self.user.y) != 4):
                     if random.randint(1, 100) <= 8:
                         to.try_damage(int(R.SurpriseSkill(R.rouge_lv)*1.5))
-                        EffectInstance("reverse", to, True, self.to.effects_front)
+                        EffectInstance("reverse", to, True, to.effects_front)
                         to.rooted_for(1000)
                         sound_player.play("cry")
                         print("暴击!!!")