mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +00:00
parent
a6d1652f44
commit
fbbbd3b09d
@ -806,7 +806,9 @@ bool Client::UseDiscipline(uint32 spell_id, uint32 target) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
CastSpell(spell_id, target, EQ::spells::CastingSlot::Discipline);
|
if (!CastSpell(spell_id, target, EQ::spells::CastingSlot::Discipline)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
|
|||||||
@ -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 (item_slot && IsClient() && (slot == CastingSlot::Item || slot == CastingSlot::PotionBelt))
|
||||||
{
|
{
|
||||||
if (!CheckItemRaceClassDietyRestrictionsOnCast(item_slot)) {
|
if (!CheckItemRaceClassDietyRestrictionsOnCast(item_slot)) {
|
||||||
|
StopCastSpell(spell_id, send_spellbar_enable);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6668,4 +6669,6 @@ bool Mob::CheckItemRaceClassDietyRestrictionsOnCast(uint32 inventory_slot) {
|
|||||||
}
|
}
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user