mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-15 17:02:26 +00:00
Elemental dmg shouldn't allow you to hit bane only
This commit is contained in:
parent
013f7cfd21
commit
343c41bb18
@ -858,7 +858,7 @@ int Mob::GetWeaponDamage(Mob *against, const EQEmu::ItemBase *weapon_item) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!eledmg && !banedmg){
|
if(!banedmg){
|
||||||
if(!GetSpecialAbility(SPECATK_BANE))
|
if(!GetSpecialAbility(SPECATK_BANE))
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
@ -979,7 +979,7 @@ int Mob::GetWeaponDamage(Mob *against, const ItemInst *weapon_item, uint32 *hate
|
|||||||
banedmg = against->CheckBaneDamage(weapon_item);
|
banedmg = against->CheckBaneDamage(weapon_item);
|
||||||
|
|
||||||
if (against->GetSpecialAbility(IMMUNE_MELEE_EXCEPT_BANE)) {
|
if (against->GetSpecialAbility(IMMUNE_MELEE_EXCEPT_BANE)) {
|
||||||
if (!eledmg && !banedmg) {
|
if (!banedmg) {
|
||||||
if (!GetSpecialAbility(SPECATK_BANE))
|
if (!GetSpecialAbility(SPECATK_BANE))
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user