mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 14:37:25 +00:00
Fix stuns
This commit is contained in:
parent
56e3d07669
commit
9cfc126842
@ -13,7 +13,7 @@ void AttackDelayBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bi
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (auto i = 0u; i < this->m_numIntervals; ++i) {
|
for (auto i = 0u; i < this->m_numIntervals; ++i) {
|
||||||
context->RegisterSyncBehavior(handle, this, branch);
|
context->RegisterSyncBehavior(handle, this, branch, m_ignoreInterrupts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,12 +45,13 @@ uint32_t BehaviorContext::GetUniqueSkillId() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void BehaviorContext::RegisterSyncBehavior(const uint32_t syncId, Behavior* behavior, const BehaviorBranchContext& branchContext) {
|
void BehaviorContext::RegisterSyncBehavior(const uint32_t syncId, Behavior* behavior, const BehaviorBranchContext& branchContext, bool ignoreInterrupts) {
|
||||||
auto entry = BehaviorSyncEntry();
|
auto entry = BehaviorSyncEntry();
|
||||||
|
|
||||||
entry.handle = syncId;
|
entry.handle = syncId;
|
||||||
entry.behavior = behavior;
|
entry.behavior = behavior;
|
||||||
entry.branchContext = branchContext;
|
entry.branchContext = branchContext;
|
||||||
|
entry.ignoreInterrupts = ignoreInterrupts;
|
||||||
|
|
||||||
this->syncEntries.push_back(entry);
|
this->syncEntries.push_back(entry);
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ struct BehaviorContext
|
|||||||
|
|
||||||
uint32_t GetUniqueSkillId() const;
|
uint32_t GetUniqueSkillId() const;
|
||||||
|
|
||||||
void RegisterSyncBehavior(uint32_t syncId, Behavior* behavior, const BehaviorBranchContext& branchContext);
|
void RegisterSyncBehavior(uint32_t syncId, Behavior* behavior, const BehaviorBranchContext& branchContext, bool ignoreInterrupts = false);
|
||||||
|
|
||||||
void RegisterTimerBehavior(Behavior* behavior, const BehaviorBranchContext& branchContext, LWOOBJID second = LWOOBJID_EMPTY);
|
void RegisterTimerBehavior(Behavior* behavior, const BehaviorBranchContext& branchContext, LWOOBJID second = LWOOBJID_EMPTY);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user