else if(_damagetype_ == dam_fire) {
if((_target_.protection[3] != prot_immune) && (_damagevalue_ > (_target_.protection[3] * _protection_))) {
_result_ = _damagevalue_ - (_target_.protection[3] * _protection_);
b_magichurtnpcosta(_source_, _target_, _result_);
}
else if(npc_isplayer(_source_) && (_source_.aivar[7] == hlp_getinstanceid(_target_))) {
printcenter(я28155, font_screen, 3);
};
}
else if(_damagetype_ == dam_magic) {
if((_target_.protection[5] != prot_immune) && (_damagevalue_ > (_target_.protection[5] * _protection_))) {
_result_ = _damagevalue_ - (_target_.protection[5] * _protection_);
b_magichurtnpcosta(_source_, _target_, _result_);
}
else if(npc_isplayer(_source_) && (_source_.aivar[7] == hlp_getinstanceid(_target_))) {
printcenter(я28156, font_screen, 3);
};
}
else if(_damagetype_ == dam_fly) {
if((_target_.protection[4] != prot_immune) && (_damagevalue_ > (_target_.protection[4] * _protection_))) {
_result_ = _damagevalue_ - (_target_.protection[4] * _protection_);
b_magichurtnpcosta(_source_, _target_, _result_);
}
else if(npc_isplayer(_source_) && (_source_.aivar[7] == hlp_getinstanceid(_target_))) {
printcenter(я28157, font_screen, 3);
};
}