mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Update per discussion on bfb17a2fb5
This commit is contained in:
@@ -447,14 +447,6 @@ bool Mob::AvoidDamage(Mob* other, int32 &damage, bool CanRiposte)
|
|||||||
if(damage > 0 && HasShieldEquiped() && (aabonuses.ShieldBlock || spellbonuses.ShieldBlock || itembonuses.ShieldBlock)
|
if(damage > 0 && HasShieldEquiped() && (aabonuses.ShieldBlock || spellbonuses.ShieldBlock || itembonuses.ShieldBlock)
|
||||||
&& (!other->BehindMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) {
|
&& (!other->BehindMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) {
|
||||||
|
|
||||||
/*
|
|
||||||
bool equiped = CastToClient()->m_inv.GetItem(14);
|
|
||||||
if(equiped) {
|
|
||||||
uint8 shield = CastToClient()->m_inv.GetItem(14)->GetItem()->ItemType;
|
|
||||||
float bonusShieldBlock = 0.0f;
|
|
||||||
if(shield == ItemTypeShield) {
|
|
||||||
*/
|
|
||||||
|
|
||||||
float bonusShieldBlock = 0.0f;
|
float bonusShieldBlock = 0.0f;
|
||||||
bonusShieldBlock = aabonuses.ShieldBlock + spellbonuses.ShieldBlock + itembonuses.ShieldBlock;
|
bonusShieldBlock = aabonuses.ShieldBlock + spellbonuses.ShieldBlock + itembonuses.ShieldBlock;
|
||||||
RollTable[1] += bonusShieldBlock;
|
RollTable[1] += bonusShieldBlock;
|
||||||
|
|||||||
Reference in New Issue
Block a user