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:
parent
1b49f2502d
commit
b05462aee8
3 changed files with 3 additions and 3 deletions
|
@ -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 )
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ public:
|
|||
{
|
||||
for( auto& chara : action.getHitActors() )
|
||||
{
|
||||
chara->setHp( chara->getHp() - chara->getMaxHp() * 0.34f );
|
||||
chara->takeDamage( chara->getMaxHp() * 0.34f );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ public:
|
|||
{
|
||||
for( auto& chara : action.getHitActors() )
|
||||
{
|
||||
chara->setHp( chara->getHp() - chara->getMaxHp() * 0.34f );
|
||||
chara->takeDamage( chara->getMaxHp() * 0.34f );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue