Disable charm clicks at <= 0

This commit is contained in:
Michael Cook (mackal) 2017-03-31 14:30:17 -04:00
parent 474f59e269
commit 6b8c39d388

View File

@ -8548,7 +8548,8 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
(spells[spell_id].targettype == ST_Ring) || (spells[spell_id].targettype == ST_Ring) ||
(IsSilenced() && !IsDiscipline(spell_id)) || (IsSilenced() && !IsDiscipline(spell_id)) ||
(IsAmnesiad() && IsDiscipline(spell_id)) || (IsAmnesiad() && IsDiscipline(spell_id)) ||
(IsDetrimentalSpell(spell_id) && !zone->CanDoCombat()) (IsDetrimentalSpell(spell_id) && !zone->CanDoCombat()) ||
inst->GetExp() <= 0 // charms don't have spells when less than 0
) )
) )
{ {