Răsfoiți Sursa

fix playersword

detopoi 1 an în urmă
părinte
comite
97cfa151e3
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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("暴击!!!")