Min fixes
This commit is contained in:
@@ -68,16 +68,15 @@ void ScavTrap::attack(const std::string &target)
|
||||
|
||||
void ScavTrap::guardGate()
|
||||
{
|
||||
if (this->guardGate)
|
||||
if (!this->guarding_gate)
|
||||
{
|
||||
this->guardGate = false;
|
||||
std::cout << "ScavTrap " << this->name << " is not in Gate keeper mode"
|
||||
this->guarding_gate = true;
|
||||
std::cout << "ScavTrap " << this->name << " is in Gate keeper mode"
|
||||
<< std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->guardGate = true;
|
||||
std::cout << "ScavTrap " << this->name << " is in Gate keeper mode"
|
||||
std::cout << "ScavTrap " << this->name << " is already in Gate keeper mode"
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user