phan 처리

This commit is contained in:
2020-05-02 12:01:54 +09:00
parent c8948953c9
commit 016ca770f5
47 changed files with 155 additions and 95 deletions
+3 -4
View File
@@ -2,6 +2,8 @@
namespace sammo;
class WarUnitGeneral extends WarUnit{
protected $raw;
function __construct(General $general, array $rawNation, bool $isAttacker){
$this->general = $general;
$this->raw = $general->getRaw();
@@ -301,10 +303,7 @@ class WarUnitGeneral extends WarUnit{
$this->checkStatChange();
}
/**
* @param \MeekroDB $db
*/
function applyDB($db):bool{
function applyDB(\MeekroDB $db):bool{
$affected = $this->getGeneral()->applyDB($db);
$this->getLogger()->flush();
return $affected;