From 4e4ecba9d53ab6bb6f394467e4db5239663c724b Mon Sep 17 00:00:00 2001 From: collett Date: Sun, 5 Jan 2020 08:16:33 +0900 Subject: [PATCH] fix caster sequence. --- src/common/Network/PacketDef/Zone/ServerZoneDef.h | 2 +- src/world/Action/EffectBuilder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/Network/PacketDef/Zone/ServerZoneDef.h b/src/common/Network/PacketDef/Zone/ServerZoneDef.h index f6c086bf..65730d02 100644 --- a/src/common/Network/PacketDef/Zone/ServerZoneDef.h +++ b/src/common/Network/PacketDef/Zone/ServerZoneDef.h @@ -589,7 +589,7 @@ namespace Sapphire::Network::Packets::Server float animationLockTime; // maybe? doesn't seem to do anything uint32_t someTargetId; // always 00 00 00 E0, 0x0E000000 is the internal def for INVALID TARGET ID - uint16_t hiddenAnimation; // if 0, always shows animation, otherwise hides it. counts up by 1 for each animation skipped on a caster + uint16_t sourceSequence; // if 0, always shows animation, otherwise hides it. counts up by 1 for each animation skipped on a caster uint16_t rotation; uint16_t actionAnimationId; // the animation that is played by the casting character uint8_t variation; // variation in the animation diff --git a/src/world/Action/EffectBuilder.cpp b/src/world/Action/EffectBuilder.cpp index f7ad86c8..3813bbfd 100644 --- a/src/world/Action/EffectBuilder.cpp +++ b/src/world/Action/EffectBuilder.cpp @@ -180,7 +180,7 @@ void EffectBuilder::buildAndSendPackets() pHeader->rotation = Common::Util::floatToUInt16Rot( m_sourceChara->getRot() ); pHeader->effectDisplayType = Common::ActionEffectDisplayType::ShowActionName; pHeader->effectCount = static_cast< uint8_t >( targetCount ); - pHeader->hiddenAnimation = 1; + pHeader->sourceSequence = m_sequence; pHeader->globalEffectCounter = m_sourceChara->getCurrentTerritory()->getNextEffectSequence(); uint8_t targetIndex = 0;