Shaman totems enhancement

This commit is contained in:
Yunfan Li
2025-01-01 20:40:48 +08:00
parent 6b8e906e39
commit 3b7415e819

View File

@@ -10,7 +10,7 @@
bool CastTotemAction::isUseful() bool CastTotemAction::isUseful()
{ {
if (needLifeTime > 0.1f) if (needLifeTime > 0.1f && AI_VALUE(uint8, "attacker count") < 3)
{ {
Unit* target = AI_VALUE(Unit*, "current target"); Unit* target = AI_VALUE(Unit*, "current target");
if (!target) if (!target)