refactor: unglob std::dynamic_pointer_cast

This commit is contained in:
Tropical
2026-03-08 22:44:00 +01:00
committed by JuiceyDev
parent 39a359ca56
commit 66248339e5
204 changed files with 603 additions and 603 deletions
@@ -13,7 +13,7 @@ bool DefendVillageTargetGoal::canUse()
{
std::shared_ptr<Village> village = golem->getVillage();
if (village == NULL) return false;
potentialTarget = std::weak_ptr<Mob>(village->getClosestAggressor(dynamic_pointer_cast<Mob>(golem->shared_from_this())));
potentialTarget = std::weak_ptr<Mob>(village->getClosestAggressor(std::dynamic_pointer_cast<Mob>(golem->shared_from_this())));
return canAttack(potentialTarget.lock(), false);
}