From 6576d3314ddec13c53ef326715b6dd56b5f362ec Mon Sep 17 00:00:00 2001 From: collett Date: Mon, 13 Mar 2023 22:32:33 +0900 Subject: [PATCH] fix CastType 3 --- src/common/Common.h | 2 +- src/world/Action/Action.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/Common.h b/src/common/Common.h index 26dfce34..de697715 100644 --- a/src/common/Common.h +++ b/src/common/Common.h @@ -1084,7 +1084,7 @@ namespace Sapphire::Common { SingleTarget = 1, CircularAOE = 2, - Type3 = 3, // another single target? no idea how to call it + ConeAOE = 3, RectangularAOE = 4, CircularAoEPlaced = 7 }; diff --git a/src/world/Action/Action.cpp b/src/world/Action/Action.cpp index a6e87202..f7815b54 100644 --- a/src/world/Action/Action.cpp +++ b/src/world/Action/Action.cpp @@ -1124,7 +1124,6 @@ void Action::Action::addDefaultActorFilters() switch( m_castType ) { case Common::CastType::SingleTarget: - case Common::CastType::Type3: { auto filter = std::make_shared< World::Util::ActorFilterSingleTarget >( static_cast< uint32_t >( m_targetId ) ); @@ -1134,6 +1133,7 @@ void Action::Action::addDefaultActorFilters() } case Common::CastType::CircularAOE: + case Common::CastType::ConeAOE: { auto filter = std::make_shared< World::Util::ActorFilterInRange >( m_pos, m_effectRange );