Skip to content

Commit

Permalink
fix: slow time shout sync
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed Mar 8, 2022
1 parent e6e8fe5 commit a3d9f5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/client/Services/Generic/MagicService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ void MagicService::OnNotifyAddTarget(const NotifyAddTarget& acMessage) const noe
data.fUnkFloat1 = 1.0f;
data.eCastingSource = MagicSystem::CastingSource::CASTING_SOURCE_COUNT;

// This hack is here because slow time seems to be twice as slow when cast by an npc
if (pEffect->pEffectSetting->eArchetype == EffectArchetypes::SLOW_TIME)
pActor = PlayerCharacter::Get();

pActor->magicTarget.AddTarget(data);
#endif
}
Expand Down

0 comments on commit a3d9f5d

Please sign in to comment.