mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 02:08:23 +00:00
explicit compare to nullptr
This commit is contained in:
+1
-1
@@ -452,7 +452,7 @@ bool Mob::AvoidDamage(Mob* other, int32 &damage, bool CanRiposte)
|
|||||||
|
|
||||||
if(damage > 0 && (aabonuses.TwoHandBluntBlock || spellbonuses.TwoHandBluntBlock || itembonuses.TwoHandBluntBlock)
|
if(damage > 0 && (aabonuses.TwoHandBluntBlock || spellbonuses.TwoHandBluntBlock || itembonuses.TwoHandBluntBlock)
|
||||||
&& (other->InFrontMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) {
|
&& (other->InFrontMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) {
|
||||||
bool equiped2 = CastToClient()->m_inv.GetItem(13);
|
bool equiped2 = CastToClient()->m_inv.GetItem(13) != nullptr;
|
||||||
if(equiped2) {
|
if(equiped2) {
|
||||||
uint8 TwoHandBlunt = CastToClient()->m_inv.GetItem(13)->GetItem()->ItemType;
|
uint8 TwoHandBlunt = CastToClient()->m_inv.GetItem(13)->GetItem()->ItemType;
|
||||||
float bonusStaffBlock = 0.0f;
|
float bonusStaffBlock = 0.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user