From cbcaead8df30ece74de4ec48ee737a3df55b0e27 Mon Sep 17 00:00:00 2001 From: hateborne Date: Wed, 13 May 2015 18:41:14 -0400 Subject: [PATCH] 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. --- zone/spells.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 77a9f691d..fc5856284 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -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() &&