Guest User

Untitled

a guest
Apr 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.80 KB | None | 0 0
  1. sub cmd_cure {
  2.     my ($ni) = @_;
  3.     my $target = read_ply_pnick(read_last_action_result('kill', 'werewolf'));
  4.  
  5.     # we know if the sorcerer has used his fate bcs of the existence
  6.     # of the key
  7.     if($special_jobs{'sorcerer'}{'data'}{'cure_used'}) {
  8.         say(P_GAME, 'error',$ni, $messages{'cmds'}{'cure'}{'already_cure'});
  9.         return 1;
  10.     }
  11.  
  12.     do_action('save', 'cure', $target);
  13.     do_action('save', 'cure', $target);
  14.  
  15.     $special_jobs{'sorcerer'}{'data'}{'cure_used'} = 1;
  16.     say(P_GAMEADV, 'reply', $ni,
  17.         $messages{'cmds'}{'cure'}{'you_cure'}, $target);
  18.    
  19.     if($special_jobs{'sorcerer'}{'data'}{'poison_used'}) {
  20.         say(P_GAMEADV, 'info', $ni, $messages{'cmds'}{'cure'}{'fates_used'});
  21.         do_next_step();
  22.         return 1;
  23.     }
  24.     return 1;
  25. }
Add Comment
Please, Sign In to add comment