[8131] Some anti-cheating server side checks.

* Loot in ghost state
* Apply duplicate glyphs.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Lightguard 2009-07-05 23:04:35 +04:00 committed by VladimirMangos
parent 61443d7583
commit 6a574896f5
3 changed files with 13 additions and 1 deletions

View file

@ -4093,6 +4093,14 @@ SpellCastResult Spell::CheckCast(bool strict)
break;
}
case SPELL_EFFECT_APPLY_GLYPH:
{
uint32 glyphId = m_spellInfo->EffectMiscValue[i];
if(GlyphPropertiesEntry const *gp = sGlyphPropertiesStore.LookupEntry(glyphId))
if(m_caster->HasAura(gp->SpellId))
return SPELL_FAILED_UNIQUE_GLYPH;
break;
}
case SPELL_EFFECT_FEED_PET:
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)