mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-02 05:02:20 +00:00
Refactor message functions
This commit is contained in:
1 parent
57354579aa
commit
9f25c9070c
38 files changed
+814
-579
No files matched your search
+2
-2
@@ -841,10 +841,10 @@ void Mob::AddTrap(Aura *aura, AuraRecord &record)
|
||||
bool Mob::CanSpawnAura(bool trap)
|
||||
{
|
||||
if (trap && !HasFreeTrapSlots()) {
|
||||
Message_StringID(Chat::SpellFailure, NO_MORE_TRAPS);
|
||||
MessageString(Chat::SpellFailure, NO_MORE_TRAPS);
|
||||
return false;
|
||||
} else if (!trap && !HasFreeAuraSlots()) {
|
||||
Message_StringID(Chat::SpellFailure, NO_MORE_AURAS);
|
||||
MessageString(Chat::SpellFailure, NO_MORE_AURAS);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user