変愚蛮怒のメインリポジトリです
Revision | dc96269c56d0bbcf929916567a6bd6d88c700118 (tree) |
---|---|
Time | 2003-07-07 02:26:24 |
Author | nothere <nothere@0568...> |
Commiter | nothere |
モンスター対モンスターの魔法使用時に, 実装されていない魔法が選択され
たことで魔法使用に失敗しないように, 未実装魔法 (魔力消去, 時間停止,
記憶消去, シンボル'B'以外の特別な行動) のフラグを最初から落とすように
修正. また, コメントの修正を含む.
@@ -1701,7 +1701,7 @@ msg_format("%^s | ||
1701 | 1701 | break; |
1702 | 1702 | } |
1703 | 1703 | |
1704 | - /* RF4_XXX4X4 */ | |
1704 | + /* RF4_ROCKET */ | |
1705 | 1705 | case 96+3: |
1706 | 1706 | { |
1707 | 1707 | disturb(1, 0); |
@@ -317,6 +317,16 @@ bool monst_spell_monst(int m_idx) | ||
317 | 317 | /* Extract the monster level */ |
318 | 318 | rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1); |
319 | 319 | |
320 | + /* Remove unimplemented spells */ | |
321 | + f4 &= ~(RF4_DISPEL); | |
322 | + f6 &= ~(RF6_WORLD | RF6_FORGET); | |
323 | + | |
324 | + /* Remove unimplemented special moves */ | |
325 | + if (f6 & RF6_SPECIAL) | |
326 | + { | |
327 | + if (r_ptr->d_char != 'B') f6 &= ~(RF6_SPECIAL); | |
328 | + } | |
329 | + | |
320 | 330 | if (in_no_magic_dungeon && !(r_ptr->flags2 & RF2_STUPID)) |
321 | 331 | { |
322 | 332 | f4 &= (RF4_NOMAGIC_MASK); |
@@ -606,7 +616,7 @@ bool monst_spell_monst(int m_idx) | ||
606 | 616 | case 96+2: |
607 | 617 | return FALSE; |
608 | 618 | |
609 | - /* RF4_XXX4X4 */ | |
619 | + /* RF4_ROCKET */ | |
610 | 620 | case 96+3: |
611 | 621 | if (known) |
612 | 622 | { |
@@ -1567,7 +1577,7 @@ bool monst_spell_monst(int m_idx) | ||
1567 | 1577 | |
1568 | 1578 | break; |
1569 | 1579 | |
1570 | - /* RF4_RF4_BR_NUKE */ | |
1580 | + /* RF4_BR_NUKE */ | |
1571 | 1581 | case 96+29: |
1572 | 1582 | if (known) |
1573 | 1583 | { |