mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
GM Output for Casting Blocked Spells
Utilizing the logging system to display an alert when a GM casts a blocked spell, giving some notification instead of silent successes on cast.
This commit is contained in:
parent
4b7871a665
commit
cbcaead8df
@ -1939,6 +1939,12 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16
|
||||
}
|
||||
}
|
||||
|
||||
if (IsClient() && CastToClient()->GetGM()){
|
||||
if (zone->IsSpellBlocked(spell_id, glm::vec3(GetPosition()))){
|
||||
Log.Out(Logs::Detail, Logs::Spells, "GM Cast Blocked Spell: %s (ID %i)", GetSpellName(spell_id), spell_id);
|
||||
}
|
||||
}
|
||||
|
||||
if
|
||||
(
|
||||
this->IsClient() &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user