OSDN Git Service

[Refactor] #38997 set_oppose_elec() に player_type * 引数を追加.
[hengband/hengband.git] / src / realm-craft.c
index 1dd61d3..44fc70b 100644 (file)
@@ -136,7 +136,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                        if (cast)
                        {
-                               set_oppose_elec(randint1(base) + base, FALSE);
+                               set_oppose_elec(p_ptr, randint1(base) + base, FALSE);
                        }
                }
                break;
@@ -322,7 +322,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
                        if (cast)
                        {
                                set_oppose_acid(p_ptr, randint1(base) + base, FALSE);
-                               set_oppose_elec(randint1(base) + base, FALSE);
+                               set_oppose_elec(p_ptr, randint1(base) + base, FALSE);
                                set_oppose_fire(randint1(base) + base, FALSE);
                                set_oppose_cold(randint1(base) + base, FALSE);
                                set_oppose_pois(randint1(base) + base, FALSE);