From 4c30e98f4a4018a25d3a9f3ee790d589be803cb0 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 13 Nov 2020 14:43:17 +0100 Subject: Added main for cpp04/ex01 and cpp04/ex02, Fixed cpp04/03 MateriaSource --- cpp04/ex03/Cure.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp04/ex03/Cure.cpp') diff --git a/cpp04/ex03/Cure.cpp b/cpp04/ex03/Cure.cpp index e27ae26..dc464ff 100644 --- a/cpp04/ex03/Cure.cpp +++ b/cpp04/ex03/Cure.cpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 17:38:01 by charles #+# #+# */ -/* Updated: 2020/11/12 15:43:44 by cacharle ### ########.fr */ +/* Updated: 2020/11/13 14:09:58 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,4 +29,5 @@ AMateria* Cure::clone() const { return new Cure(*this); } void Cure::use(ICharacter& target) { std::cout << "* heals " << target.getName() << "'s wounds *" << std::endl; + AMateria::use(target); } -- cgit