Skip to content

Commit

Permalink
Update mattack_actors.cpp (#1865)
Browse files Browse the repository at this point in the history
Co-Authored-By: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
  • Loading branch information
chaosvolt and I-am-Erk authored Oct 30, 2022
1 parent 3bffedf commit c4d85a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mattack_actors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ bool mon_spellcasting_actor::call( monster &mon ) const
return false;
}

const tripoint target = mon.attack_target()->pos();
const tripoint target = self ? mon.pos() : mon.attack_target()->pos();

std::string fx = spell_data.effect();
// is the spell an attack that needs to hit the target?
Expand Down

0 comments on commit c4d85a0

Please sign in to comment.