message: fix death check for npc
  fixed
diff: @@ -383,17 +383,19 @@ bool Npc::checkHealth(bool onChange,bool forceKill) {
  return false;
  }
  - if(onChange && currentOther!=nullptr) {
  - // currentOther must be externaly initialized
  - if(owner.script().personAttitude(*this,*currentOther)==ATT_HOSTILE ||
  - guild()>GIL_SEPERATOR_HUM || forceKill){
  + if(currentOther==nullptr ||
  + forceKill ||
  + owner.script().personAttitude(*this,*currentOther)==ATT_HOSTILE ||
  + guild()>GIL_SEPERATOR_HUM){
  if(hnpc.attribute[ATR_HITPOINTS]<=0) {
  size_t fdead=owner.getSymbolIndex("ZS_Dead");
  if(animation.current!=Anim::UnconsciousA && animation.current!=Anim::UnconsciousB)
  animation.resetAni();
  startState(fdead,"");
  - if(hnpc.voice>0){
  + if(hnpc.voice>0 && currentOther!=nullptr){
  + // in case of battle currentOther!=nullptr,
  + // if else detch is scripted
  char name[32]={};
  std::snprintf(name,sizeof(name),"SVM_%d_DEAD",int(hnpc.voice));
  emitSoundEffect(name,25,true);
  @@ -413,7 +415,6 @@ bool Npc::checkHealth(bool onChange,bool forceKill) {
  }
  return false;
  }
  - }
  physic.setEnable(true);
  return true;
  }
  