コード例 #1
0
ファイル: fight.php プロジェクト: sinfocol/gwf3
 private static function checkKillProtection(SR_Player $player, SR_Party $ep)
 {
     $p = $player->getParty();
     // 		$ep = $p->getEnemyParty();
     if (SR_KillProtect::isKillProtectedRealNPCParty($ep)) {
         return false;
     }
     if (SR_KillProtect::isKillProtectedPartyLevel($p, $ep, $player, true)) {
         return false;
     }
     if (false !== ($time = SR_KillProtect::isKillProtectedParty($p, $ep))) {
         $wait = GWF_Time::humanDuration($time - Shadowrun4::getTime());
         self::rply($player, '1060', array($wait));
         // 			$player->message(sprintf('You cannot attack this party again. Please wait %s.', $wait));
         return false;
     }
     SR_BadKarma::onFight($player, $ep);
     return true;
 }