1 #include "object-activation/activation-charm.h"
2 #include "spell-kind/spells-charm.h"
3 #include "spell-kind/spells-sight.h"
4 #include "target/target-getter.h"
6 bool activate_charm_animal(player_type *user_ptr)
9 if (!get_aim_dir(user_ptr, &dir))
12 (void)charm_animal(user_ptr, dir, user_ptr->lev);
16 bool activate_charm_undead(player_type *user_ptr)
19 if (!get_aim_dir(user_ptr, &dir))
22 (void)control_one_undead(user_ptr, dir, user_ptr->lev);
26 bool activate_charm_other(player_type *user_ptr)
29 if (!get_aim_dir(user_ptr, &dir))
32 (void)charm_monster(user_ptr, dir, user_ptr->lev * 2);
36 bool activate_charm_animals(player_type *user_ptr)
38 (void)charm_animals(user_ptr, user_ptr->lev * 2);
42 bool activate_charm_others(player_type *user_ptr)
44 (void)charm_monsters(user_ptr, user_ptr->lev * 2);