diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | bef0f98085526b80b316580bb5a07fcd8b1af2c5 (patch) | |
tree | 1a3ca0b2e2b34cbe55ef047bd18ee819aa515c97 /src/melee2.cc | |
parent | 03c402d63f5bef5d880c81bf7253a1274aaacf01 (diff) |
Make summons appear around summoner instead of player
Diffstat (limited to 'src/melee2.cc')
-rw-r--r-- | src/melee2.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/melee2.cc b/src/melee2.cc index a31ca1f7..c246343b 100644 --- a/src/melee2.cc +++ b/src/melee2.cc @@ -1127,17 +1127,18 @@ static bool_ monst_spell_monst(int m_idx) { monster_msg("%^s magically %s", m_name, action); } + // Do the actual summoning int count = 0; for (int k = 0; k < n; k++) { if (friendly) { - count += summon_specific_friendly(y, x, rlev, friendly_type, TRUE); + count += summon_specific_friendly(m_ptr->fy, m_ptr->fx, rlev, friendly_type, TRUE); } else if (!friendly) { - count += summon_specific(y, x, rlev, hostile_type); + count += summon_specific(m_ptr->fy, m_ptr->fx, rlev, hostile_type); } } // Message for blinded characters @@ -2298,11 +2299,11 @@ static bool_ monst_spell_monst(int m_idx) int count = 0; for (int k = 0; k < 8; k++) { - count += summon_specific(y, x, rlev, SUMMON_UNIQUE); + count += summon_specific(m_ptr->fy, m_ptr->fx, rlev, SUMMON_UNIQUE); } for (int k = 0; k < 8; k++) { - count += summon_specific(y, x, rlev, SUMMON_HI_UNDEAD); + count += summon_specific(m_ptr->fy, m_ptr->fx, rlev, SUMMON_HI_UNDEAD); } // Message if (blind) @@ -2702,7 +2703,7 @@ static bool_ make_attack_spell(int m_idx) int count = 0; for (int k = 0; k < n; k++) { - count += summon_specific(y, x, rlev, type); + count += summon_specific(m_ptr->fy, m_ptr->fx, rlev, type); } // Message for blinded characters if (blind) @@ -3814,11 +3815,11 @@ static bool_ make_attack_spell(int m_idx) int count = 0; for (int k = 0; k < 8; k++) { - count += summon_specific(y, x, rlev, SUMMON_UNIQUE); + count += summon_specific(m_ptr->fy, m_ptr->fx, rlev, SUMMON_UNIQUE); } for (int k = 0; k < 8; k++) { - count += summon_specific(y, x, rlev, SUMMON_HI_UNDEAD); + count += summon_specific(m_ptr->fy, m_ptr->fx, rlev, SUMMON_HI_UNDEAD); } // Message if (blind) |