Assure HearDispell is not accidentally sent to old clients causing a crash

This commit is contained in:
Emagi 2025-08-15 21:06:36 -04:00
parent 093cba8c37
commit 24f5a566ae

View File

@ -7955,6 +7955,8 @@ void ZoneServer::SendDispellPacket(Entity* caster, Spawn* target, string dispell
continue;
if(target && target->GetDistance(player) > 50)
continue;
if(client->GetVersion() <= 561)
continue; // does not support packet
packet = configReader.getStruct("WS_HearDispell", client->GetVersion());
if(packet){