diff --git a/src/scripts/CMakeLists.txt b/src/scripts/CMakeLists.txt index ca247060..c049a97f 100644 --- a/src/scripts/CMakeLists.txt +++ b/src/scripts/CMakeLists.txt @@ -45,7 +45,7 @@ foreach(_scriptDir ${children}) MODULE ${SCRIPT_BUILD_FILES} "${SCRIPT_INCLUDE_FILES}" - "${_scriptDir}/ScriptLoader.cpp" action/darkknight/ActionUnleash3621.cpp action/darkknight/ActionUnleash3621.h) + "${_scriptDir}/ScriptLoader.cpp" ) target_link_libraries( "script_${_name}" world ) diff --git a/src/scripts/action/darkknight/ActionHardSlash3617.cpp b/src/scripts/action/darkknight/ActionHardSlash3617.cpp index 77775263..bd39b3ea 100644 --- a/src/scripts/action/darkknight/ActionHardSlash3617.cpp +++ b/src/scripts/action/darkknight/ActionHardSlash3617.cpp @@ -16,7 +16,7 @@ public: { for( auto& chara : action.getHitActors() ) { - chara->setHp( chara->getHp() - chara->getMaxHp() * 0.34f ); + chara->takeDamage( chara->getMaxHp() * 0.34f ); } } diff --git a/src/scripts/action/darkknight/ActionUnleash3621.cpp b/src/scripts/action/darkknight/ActionUnleash3621.cpp index b5004f66..dd06d42e 100644 --- a/src/scripts/action/darkknight/ActionUnleash3621.cpp +++ b/src/scripts/action/darkknight/ActionUnleash3621.cpp @@ -16,7 +16,7 @@ public: { for( auto& chara : action.getHitActors() ) { - chara->setHp( chara->getHp() - chara->getMaxHp() * 0.34f ); + chara->takeDamage( chara->getMaxHp() * 0.34f ); } } };