mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
RoF+ - Added the "Your race, class, or deity cannot use this item." message since it no longer exists in the eqstr_us.txt file.
This commit is contained in:
parent
ac09636a73
commit
179f47dbe3
@ -274,7 +274,15 @@ bool Mob::CastSpell(uint16 spell_id, uint16 target_id, uint16 slot,
|
||||
database.SetHackerFlag(CastToClient()->AccountName(), CastToClient()->GetCleanName(), "Clicking race/class restricted item with an invalid class");
|
||||
}
|
||||
else {
|
||||
Message_StringID(13, CANNOT_USE_ITEM);
|
||||
if (CastToClient()->GetClientVersion() >= EQClientRoF)
|
||||
{
|
||||
// Line 181 in eqstr_us.txt was changed in RoF+
|
||||
Message(15, "Your race, class, or deity cannot use this item.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Message_StringID(13, CANNOT_USE_ITEM);
|
||||
}
|
||||
}
|
||||
return(false);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user