aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/SpellHandler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-10-22 18:39:59 +0200
committerShauren <shauren.trinity@gmail.com>2023-10-22 18:39:59 +0200
commitdc9361fcc2eb16a59b52dfd8b0d47dfc1bf639be (patch)
treeb25b12a693f3e60f940be7a78df72b7ba47f4718 /src/server/game/Handlers/SpellHandler.cpp
parentb2393d6adeca9a54b6ff1fb62a87da48c068f010 (diff)
Core/Spells: Named and implemented most of SpellAttr8
Diffstat (limited to 'src/server/game/Handlers/SpellHandler.cpp')
-rw-r--r--src/server/game/Handlers/SpellHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Handlers/SpellHandler.cpp b/src/server/game/Handlers/SpellHandler.cpp
index d951fe60d19..48f51f4632c 100644
--- a/src/server/game/Handlers/SpellHandler.cpp
+++ b/src/server/game/Handlers/SpellHandler.cpp
@@ -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;