mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-23 19:10:28 +02:00
Fixed bug where when a mob was insta-killed they would disappear (not die). More renames for action -> result. Reverted result packet unknown from 0x801 to 0x810. Added hitnum. Fixed isolation.
This commit is contained in:
parent
e236e1d207
commit
080f9ea23d
5 changed files with 31 additions and 23 deletions
|
@ -227,6 +227,14 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.utils
|
|||
if (defender != null)
|
||||
{
|
||||
|
||||
//Bugfix, mobs that instantly died were insta disappearing due to lastAttacker == null.
|
||||
if (defender is BattleNpc)
|
||||
{
|
||||
var bnpc = defender as BattleNpc;
|
||||
if (bnpc.lastAttacker == null)
|
||||
bnpc.lastAttacker = attacker;
|
||||
}
|
||||
|
||||
defender.DelHP((short)action.amount);
|
||||
attacker.OnDamageDealt(defender, action, actionContainer);
|
||||
defender.OnDamageTaken(attacker, action, actionContainer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue