Assure HearDispell is not accidentally sent to old clients causing a crash
This commit is contained in:
parent
093cba8c37
commit
24f5a566ae
@ -7955,6 +7955,8 @@ void ZoneServer::SendDispellPacket(Entity* caster, Spawn* target, string dispell
|
|||||||
continue;
|
continue;
|
||||||
if(target && target->GetDistance(player) > 50)
|
if(target && target->GetDistance(player) > 50)
|
||||||
continue;
|
continue;
|
||||||
|
if(client->GetVersion() <= 561)
|
||||||
|
continue; // does not support packet
|
||||||
|
|
||||||
packet = configReader.getStruct("WS_HearDispell", client->GetVersion());
|
packet = configReader.getStruct("WS_HearDispell", client->GetVersion());
|
||||||
if(packet){
|
if(packet){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user