Core/Spells: Named and implemented most of SpellAttr8

This commit is contained in:
Shauren
2023-10-22 18:39:59 +02:00
parent b2393d6ade
commit dc9361fcc2
13 changed files with 325 additions and 166 deletions

View File

@@ -328,7 +328,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPackets::Spells::CastSpell& cast)
SpellCastTargets targets(caster, cast.Cast);
// check known spell or raid marker spell (which not requires player to know it)
if (caster->GetTypeId() == TYPEID_PLAYER && !caster->ToPlayer()->HasActiveSpell(spellInfo->Id) && !spellInfo->HasEffect(SPELL_EFFECT_CHANGE_RAID_MARKER) && !spellInfo->HasAttribute(SPELL_ATTR8_RAID_MARKER))
if (caster->GetTypeId() == TYPEID_PLAYER && !caster->ToPlayer()->HasActiveSpell(spellInfo->Id) && !spellInfo->HasAttribute(SPELL_ATTR8_SKIP_IS_KNOWN_CHECK))
{
bool allow = false;
@@ -349,7 +349,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPackets::Spells::CastSpell& cast)
}
// Check possible spell cast overrides
spellInfo = caster->GetCastSpellInfo(spellInfo);
spellInfo = caster->GetCastSpellInfo(spellInfo, triggerFlag);
if (spellInfo->IsPassive())
return;