예제 #1
0
파일: Clearing.php 프로젝트: sinfocol/gwf3
 public function onEnterLocation(SR_Party $party)
 {
     $player = $party->getLeader();
     if ('1' === SR_PlayerVar::getVal($player, self::SWORDKEY, '0')) {
         $numBansh = self::getNumBanshees($player);
         $this->partyMessage($player, 'magic1');
         $this->partyMessage($player, 'magic2');
         $this->partyMessage($player, 'magic3');
         $enemies = array('Forest_Mordak');
         for ($i = 0; $i < $numBansh; $i++) {
             $enemies[] = 'Forest_Banshee';
         }
         shuffle($enemies);
         # Legitimate use of shuffle!
         $party->fight(SR_NPC::createEnemyParty($enemies));
     }
 }