mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
[Bug Fix] Autofire attacking yourself (#1776)
* Fix being able to attack yourself with autofire if Combat:MinRangedAttackDist == 0 * requested changes * 2
This commit is contained in:
@@ -3386,6 +3386,13 @@ void Client::Handle_OP_AutoFire(const EQApplicationPacket *app)
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetTarget() == this) {
|
||||
MessageString(Chat::TooFarAway, TRY_ATTACKING_SOMEONE);
|
||||
auto_fire = false;
|
||||
return;
|
||||
}
|
||||
|
||||
bool *af = (bool*)app->pBuffer;
|
||||
auto_fire = *af;
|
||||
if(!RuleB(Character, EnableRangerAutoFire))
|
||||
|
||||
Reference in New Issue
Block a user