diff --git a/Aquaria/Entity.cpp b/Aquaria/Entity.cpp index b8d8d0e..41dbe9a 100644 --- a/Aquaria/Entity.cpp +++ b/Aquaria/Entity.cpp @@ -1451,7 +1451,7 @@ void Entity::setAllDamageTargets(bool v) bool Entity::isDamageTarget(DamageType dt) { - return std::binary_search(disabledDamageTypes.begin(), disabledDamageTypes.end(), dt); + return !std::binary_search(disabledDamageTypes.begin(), disabledDamageTypes.end(), dt); } float Entity::getHealthPerc()