From: Lukas Jiriste Date: Fri, 18 Oct 2024 08:10:05 +0000 (+0200) Subject: Change the message for dead taking damage X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=db9a7349ab190bfcad7255cedf87d4412598703f;p=42%2FCPP_Module_03 Change the message for dead taking damage --- diff --git a/ex00/ClapTrap.cpp b/ex00/ClapTrap.cpp index 0acda6c..47b25ba 100644 --- a/ex00/ClapTrap.cpp +++ b/ex00/ClapTrap.cpp @@ -49,7 +49,8 @@ void ClapTrap::attack(const std::string &target) void ClapTrap::takeDamage(unsigned int amount) { if (m_hp == 0) - std::cout << "ClapTrap " << m_name << " is alread dead.\n"; + std::cout << "ClapTrap " << m_name << + " is already dead and cannot be damaged further.\n"; else if (amount >= m_hp) { std::cout << "ClapTrap " << m_name