예제 #1
0
파일: SR_City.php 프로젝트: sinfocol/gwf3
 public function onHijack(SR_Party $party, $done)
 {
     # Still have valid target?
     if (false === ($target = $party->getHijackTarget()) || $target->getParty()->getLocation('inside') !== $party->getLocation()) {
         $party->ntice('5024', array($party->getTarget()));
         // 			$party->notice('Your target for hijacking ('.$party->getTarget().') gone away.');
         $party->pushAction('outside', $party->getLocation());
         return false;
     }
     # Time over?
     if ($done) {
         $party->pushAction('outside', $party->getLocation());
         $target->getMount()->onHijack($party->getLeader());
         return true;
     }
 }