Change the message for dead taking damage
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 18 Oct 2024 08:10:05 +0000 (10:10 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 18 Oct 2024 08:10:05 +0000 (10:10 +0200)
ex00/ClapTrap.cpp

index 0acda6c4ccf3267e06c64c4208f7d3c27300f360..47b25bae5c05de383ff01f8b43c93856ca868a7f 100644 (file)
@@ -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