ScavTrap fixes

This commit is contained in:
Angel Ortigosa Perez
2025-10-26 20:39:23 +01:00
parent c4bc886906
commit 6ecb191180
5 changed files with 2 additions and 0 deletions

BIN
ex00/ClapTrap/ClapTrap.o Normal file

Binary file not shown.

BIN
ex00/claptrap Executable file

Binary file not shown.

BIN
ex00/main.o Normal file

Binary file not shown.

View File

@@ -40,6 +40,7 @@ ScavTrap& ScavTrap::operator=(const ScavTrap &other)
this->health = other.health; this->health = other.health;
this->energy = other.energy; this->energy = other.energy;
this->attackDamage = other.attackDamage; this->attackDamage = other.attackDamage;
this->guarding_gate = other.guarding_gate;
} }
return (*this); return (*this);
} }

View File

@@ -40,6 +40,7 @@ ScavTrap& ScavTrap::operator=(const ScavTrap &other)
this->health = other.health; this->health = other.health;
this->energy = other.energy; this->energy = other.energy;
this->attackDamage = other.attackDamage; this->attackDamage = other.attackDamage;
this->guarding_gate = other.guarding_gate;
} }
return (*this); return (*this);
} }