Guest User

Untitled

a guest
Apr 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. # Called in the morning, announce the werewolves crime.
  2. # May have "before" or "after" hooks for other deaths.
  3. sub do_morning_death_announce {
  4. my $killed = read_ply_pnick(read_last_action_result('kill', 'werewolf'));
  5. return unless(defined($killed));
  6.  
  7. my $sorc_cure = read_ply_pnick(read_last_action_result('save', 'cure2'));
  8.  
  9. if (defined($sorc_cure) && $killed eq $sorc_cure) {
  10. delete_last_action_result('save', 'cure2');
  11. }
  12. else {
  13. # Announce it
  14. say(P_GAMEADV, 'info', $CFG{'day_channel'},
  15. $messages{'deads'}{'werevolves_kill'}, $killed);
  16. }
  17. return do_action('death_announce', $killed);
  18. }
Add Comment
Please, Sign In to add comment