mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-17 18:02:26 +00:00
[Bug Fix] Attack Corpse Skill Up Fix (#3924)
* [Bug] Attack Corpse Skillup Fix Occasions where a corpse will allow skillups from attacks being turned on (even if no damage) * requested changes
This commit is contained in:
parent
f12c87a04a
commit
0418dc4aa3
@ -1463,9 +1463,9 @@ void Mob::DoAttack(Mob *other, DamageHitInfo &hit, ExtraAttackOptions *opts, boo
|
||||
//SYNC WITH: tune.cpp, mob.h TuneClientAttack
|
||||
bool Mob::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool IsFromSpell, ExtraAttackOptions *opts)
|
||||
{
|
||||
if (!other) {
|
||||
if (!other || (other && other->IsCorpse())) {
|
||||
SetTarget(nullptr);
|
||||
LogError("A null Mob object was passed for evaluation!");
|
||||
LogError("A null or invalid Mob object was passed for evaluation!");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -6322,8 +6322,9 @@ void NPC::SetAttackTimer()
|
||||
|
||||
void Client::DoAttackRounds(Mob *target, int hand, bool IsFromSpell)
|
||||
{
|
||||
if (!target)
|
||||
if (!target || (target && target->IsCorpse())) {
|
||||
return;
|
||||
}
|
||||
|
||||
Attack(target, hand, false, false, IsFromSpell);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user