diff options
author | Ovahlord <dreadkiller@gmx.de> | 2025-01-01 15:57:47 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2025-01-01 15:57:47 +0100 |
commit | 1b7e827799f382c527b9669cd9b5d9076f2c2ef8 (patch) | |
tree | faeb33493acaf4f1572daefec7943853cdd7622c /src | |
parent | fdd1388def543689e7e45dd381bc6e84ea5c4c12 (diff) |
Core/Creatures: allow creatures with CREATURE_STATIC_FLAG_3_CAN_BE_MULTITAPPED to bypass the tapper cap
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 6d722dac65b..350b7cdd47c 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -1297,7 +1297,7 @@ void Creature::SetTappedBy(Unit const* unit, bool withGroup) return; } - if (m_tapList.size() >= CREATURE_TAPPERS_SOFT_CAP) + if (m_tapList.size() >= CREATURE_TAPPERS_SOFT_CAP && !CanBeMultiTapped()) return; if (unit->GetTypeId() != TYPEID_PLAYER && !unit->IsVehicle()) @@ -1314,7 +1314,7 @@ void Creature::SetTappedBy(Unit const* unit, bool withGroup) if (GetMap()->IsRaid() || group->SameSubGroup(player, itr->GetSource())) m_tapList.insert(itr->GetSource()->GetGUID()); - if (m_tapList.size() >= CREATURE_TAPPERS_SOFT_CAP) + if (m_tapList.size() >= CREATURE_TAPPERS_SOFT_CAP && !CanBeMultiTapped()) SetDynamicFlag(UNIT_DYNFLAG_TAPPED); } |