mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
61443d7583
commit
6a574896f5
3 changed files with 13 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue