Merge pull request #414 from hateborne/master

GM Output for Casting Blocked Spells via Logging System
This commit is contained in:
Alex 2015-05-18 21:45:07 -07:00
commit 02c3fd0905

View File

@ -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 if
( (
this->IsClient() && this->IsClient() &&