mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 03:11:28 +00:00
Check to make sure we're a client before a CastToClient(). Missed this
on first patch.
This commit is contained in:
parent
a1960d4a4a
commit
eea667e22d
@ -983,10 +983,12 @@ int Mob::GetWeaponDamage(Mob *against, const ItemInst *weapon_item, uint32 *hate
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
bool MagicGloves=false;
|
bool MagicGloves=false;
|
||||||
|
if (IsClient()) {
|
||||||
ItemInst *gloves=CastToClient()->GetInv().GetItem(MainHands);
|
ItemInst *gloves=CastToClient()->GetInv().GetItem(MainHands);
|
||||||
if (gloves != nullptr) {
|
if (gloves != nullptr) {
|
||||||
MagicGloves = gloves->GetItem()->Magic;
|
MagicGloves = gloves->GetItem()->Magic;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if((GetClass() == MONK || GetClass() == BEASTLORD)) {
|
if((GetClass() == MONK || GetClass() == BEASTLORD)) {
|
||||||
if(MagicGloves || GetLevel() >= 30){
|
if(MagicGloves || GetLevel() >= 30){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user