mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 22:17:16 +00:00
[Crash] Fix out of bound arrays, other potential crashes (#3166)
This commit is contained in:
1 parent
0d509a7f3a
commit
0df84e1ee6
9 files changed
+34
-24
No files matched your search
@@ -1484,7 +1484,6 @@ bool Mob::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool
|
||||
|
||||
if (
|
||||
(IsCasting() && GetClass() != BARD && !IsFromSpell)
|
||||
|| other == nullptr
|
||||
|| ((IsClient() && CastToClient()->dead) || (other->IsClient() && other->CastToClient()->dead))
|
||||
|| (GetHP() < 0)
|
||||
|| (!IsAttackAllowed(other))
|
||||
|
||||
Reference in new issue
Block a user