mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +00:00
Some aoe work
This commit is contained in:
parent
293c281eba
commit
49486f5d02
3 changed files with 3 additions and 9 deletions
|
@ -1872,8 +1872,8 @@ namespace Sapphire::Common
|
||||||
{
|
{
|
||||||
SingleTarget = 1,
|
SingleTarget = 1,
|
||||||
CircularAOE = 2,
|
CircularAOE = 2,
|
||||||
Type3 = 3, // another single target? no idea how to call it
|
RectangularAOE = 3,
|
||||||
RectangularAOE = 4,
|
ConeAOE = 4,
|
||||||
CircularAoEPlaced = 7
|
CircularAoEPlaced = 7
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -193,6 +193,7 @@ namespace Sapphire::World::Action
|
||||||
uint8_t m_cooldownGroup{};
|
uint8_t m_cooldownGroup{};
|
||||||
int8_t m_range{};
|
int8_t m_range{};
|
||||||
uint8_t m_effectRange{};
|
uint8_t m_effectRange{};
|
||||||
|
uint8_t m_effectWidth{};
|
||||||
uint8_t m_xAxisModifier{};
|
uint8_t m_xAxisModifier{};
|
||||||
Common::ActionAspect m_aspect;
|
Common::ActionAspect m_aspect;
|
||||||
Common::CastType m_castType;
|
Common::CastType m_castType;
|
||||||
|
|
|
@ -71,13 +71,6 @@ void ActionMgr::handleTargetedPlayerAction( Entity::Player& player, uint32_t act
|
||||||
if( !action->init() )
|
if( !action->init() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// cancel any aoe actions casted with this packet
|
|
||||||
if( actionData->data().EffectRange )
|
|
||||||
{
|
|
||||||
action->interrupt();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
bootstrapAction( player, action, actionData );
|
bootstrapAction( player, action, actionData );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue