mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
[Cleanup] Multiple cases same outcome and set skip variable to same value (#3216)
# Notes - `skip` is set to `attacker` before it's set to `attacker` again. - Multiple spots in `Mob::AttackAnimation` use the same animations.
This commit is contained in:
parent
b1571cd062
commit
cd5697bc81
@ -101,21 +101,17 @@ EQ::skills::SkillType Mob::AttackAnimation(int Hand, const EQ::ItemInstance* wea
|
|||||||
}
|
}
|
||||||
else if (IsNPC()) {
|
else if (IsNPC()) {
|
||||||
switch (skillinuse) {
|
switch (skillinuse) {
|
||||||
|
case EQ::skills::Skill1HBlunt: // 1H Blunt
|
||||||
case EQ::skills::Skill1HSlashing: // 1H Slashing
|
case EQ::skills::Skill1HSlashing: // 1H Slashing
|
||||||
type = anim1HWeapon;
|
type = anim1HWeapon;
|
||||||
break;
|
break;
|
||||||
|
case EQ::skills::Skill2HBlunt: // 2H Blunt
|
||||||
case EQ::skills::Skill2HSlashing: // 2H Slashing
|
case EQ::skills::Skill2HSlashing: // 2H Slashing
|
||||||
type = anim2HSlashing;
|
type = anim2HSlashing;
|
||||||
break;
|
break;
|
||||||
case EQ::skills::Skill1HPiercing: // Piercing
|
case EQ::skills::Skill1HPiercing: // Piercing
|
||||||
type = anim1HPiercing;
|
type = anim1HPiercing;
|
||||||
break;
|
break;
|
||||||
case EQ::skills::Skill1HBlunt: // 1H Blunt
|
|
||||||
type = anim1HWeapon;
|
|
||||||
break;
|
|
||||||
case EQ::skills::Skill2HBlunt: // 2H Blunt
|
|
||||||
type = anim2HSlashing; //anim2HWeapon
|
|
||||||
break;
|
|
||||||
case EQ::skills::Skill2HPiercing: // 2H Piercing
|
case EQ::skills::Skill2HPiercing: // 2H Piercing
|
||||||
type = anim2HWeapon;
|
type = anim2HWeapon;
|
||||||
break;
|
break;
|
||||||
@ -4305,7 +4301,6 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons
|
|||||||
attacker->CastToClient()->QueuePacket(outapp, true, CLIENT_CONNECTED, filter);
|
attacker->CastToClient()->QueuePacket(outapp, true, CLIENT_CONNECTED, filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
skip = attacker;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//send damage to all clients around except the specified skip mob (attacker or the attacker's owner) and ourself
|
//send damage to all clients around except the specified skip mob (attacker or the attacker's owner) and ourself
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user