Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hatersgit committed Nov 24, 2023
1 parent 992d916 commit 61007a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ class ActivateClassSpecHandler : public ForgeTopicHandler

auto info = sSpellMgr->GetSpellInfo(ACTIVATE_SPEC_SPELL);
iam.player->SetSpecActivationAllowed(false);
iam.player->RemoveOperationIfExists(ACTIVATE_SPEC_SPELL);
iam.player->CastSpell(iam.player, info);
iam.player->AddTimedDelayedOperation(ACTIVATE_SPEC_SPELL, info->CastTimeEntry->CastTime+100, [iam, spec, tabId, this](){
iam.player->AddTimedDelayedOperation(ACTIVATE_SPEC_SPELL, getMSTime() + info->CastTimeEntry->CastTime+100, [iam, spec, tabId, this](){
if (iam.player->GetSpecActivationAllowed()) {
ForgeTalentTab* tab;
if (fc->TryGetTalentTab(iam.player, tabId, tab)) {
Expand Down
3 changes: 0 additions & 3 deletions src/server/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6196,9 +6196,6 @@ void Spell::EffectSpecCount(SpellEffIndex /*effIndex*/)

void Spell::EffectActivateSpec(SpellEffIndex /*effIndex*/)
{
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;

if (!unitTarget)
return;

Expand Down

0 comments on commit 61007a4

Please sign in to comment.