Upgraded to new APIs

This commit is contained in:
wincent
2023-10-07 15:15:15 +02:00
parent 2097dbfff1
commit 89339d3003
7 changed files with 18 additions and 109 deletions

View File

@@ -102,7 +102,7 @@ void BasicAttackBehavior::DoHandleBehavior(BehaviorContext* context, RakNet::Bit
totalDamageDealt = this->m_MinDamage;
}
auto* source = EntityManager::Instance()->GetEntity(context->originator);
auto* source = Game::entityManager->GetEntity(context->originator);
auto* damageProfile = DamageProfile::FindDamageProfile(context->skillID);
@@ -206,7 +206,7 @@ void BasicAttackBehavior::DoBehaviorCalculation(BehaviorContext* context, RakNet
auto damage = this->m_MinDamage;
auto* source = EntityManager::Instance()->GetEntity(context->originator);
auto* source = Game::entityManager->GetEntity(context->originator);
auto* damageProfile = DamageProfile::FindDamageProfile(context->skillID);