mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 02:27:21 +00:00
1 parent
a6d1652f44
commit
fbbbd3b09d
2 files changed
+6
-1
No files matched your search
@@ -209,6 +209,7 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, CastingSlot slot,
|
||||
if (item_slot && IsClient() && (slot == CastingSlot::Item || slot == CastingSlot::PotionBelt))
|
||||
{
|
||||
if (!CheckItemRaceClassDietyRestrictionsOnCast(item_slot)) {
|
||||
StopCastSpell(spell_id, send_spellbar_enable);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -6668,4 +6669,6 @@ bool Mob::CheckItemRaceClassDietyRestrictionsOnCast(uint32 inventory_slot) {
|
||||
}
|
||||
return(false);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in new issue
Block a user