1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

kill mobs instead of just restoring their hp

This commit is contained in:
NotAdam 2019-04-07 16:16:52 +10:00
parent 1b49f2502d
commit b05462aee8
3 changed files with 3 additions and 3 deletions

View file

@ -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 )

View file

@ -16,7 +16,7 @@ public:
{
for( auto& chara : action.getHitActors() )
{
chara->setHp( chara->getHp() - chara->getMaxHp() * 0.34f );
chara->takeDamage( chara->getMaxHp() * 0.34f );
}
}

View file

@ -16,7 +16,7 @@ public:
{
for( auto& chara : action.getHitActors() )
{
chara->setHp( chara->getHp() - chara->getMaxHp() * 0.34f );
chara->takeDamage( chara->getMaxHp() * 0.34f );
}
}
};