diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-03 06:15:49 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-03 06:15:49 +0000 |
commit | 55e422bf9dcda3c8515848e84e079da6dc9a9ad9 (patch) | |
tree | 2c157c11685b0eabf6687db8662977228e8e9287 /crawl-ref/source/spells2.cc | |
parent | 372b7c5803a47c4f2aaa246867aeb0c4bbd2abaf (diff) | |
download | crawl-ref-55e422bf9dcda3c8515848e84e079da6dc9a9ad9.tar.gz crawl-ref-55e422bf9dcda3c8515848e84e079da6dc9a9ad9.zip |
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8161 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index e5b2125ef1..e642ff08d7 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -1446,9 +1446,11 @@ bool cast_summon_elemental(int pow, god_type god, && random2(100) >= unfriendly); if (create_monster( - mgen_data(mon, friendly ? BEH_FRIENDLY : BEH_HOSTILE, - dur, targ, friendly ? you.pet_target : MHITYOU, 0, god)) - == -1) + mgen_data(mon, + friendly ? BEH_FRIENDLY : BEH_HOSTILE, + dur, targ, + friendly ? you.pet_target : MHITYOU, + 0, god)) == -1) { canned_msg(MSG_NOTHING_HAPPENS); return (false); @@ -1469,8 +1471,8 @@ bool cast_summon_ice_beast(int pow, god_type god) const int dur = std::min(2 + (random2(pow) / 4), 6); if (create_monster( - mgen_data(mon, BEH_FRIENDLY, dur, you.pos(), - you.pet_target, + mgen_data(mon, BEH_FRIENDLY, dur, + you.pos(), you.pet_target, 0, god)) != -1) { mpr("A chill wind blows around you."); @@ -1709,7 +1711,8 @@ bool cast_tukimas_dance(int pow, god_type god, create_monster( mgen_data(MONS_DANCING_WEAPON, friendly ? BEH_FRIENDLY : BEH_HOSTILE, - dur, SPELL_TUKIMAS_DANCE, you.pos(), + dur, SPELL_TUKIMAS_DANCE, + you.pos(), friendly ? you.pet_target : MHITYOU, 0, god)); @@ -1785,7 +1788,8 @@ bool cast_conjure_ball_lightning(int pow, god_type god) int monster = mons_place( - mgen_data(MONS_BALL_LIGHTNING, BEH_FRIENDLY, 0, + mgen_data(MONS_BALL_LIGHTNING, BEH_FRIENDLY, + 0, SPELL_CONJURE_BALL_LIGHTNING, target, MHITNOT, 0, god)); if (monster != -1) |