mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 23:36:22 +00:00
EnFz_ApplyDamage match fixup
This commit is contained in:
parent
1baa571f18
commit
3c34acbbf4
1 changed files with 18 additions and 13 deletions
|
@ -341,11 +341,11 @@ void EnFz_ApplyDamage(EnFz* this, PlayState* play) {
|
|||
this->collider1.base.acFlags &= ~AC_HIT;
|
||||
} else if (this->collider1.base.acFlags & AC_HIT) {
|
||||
this->collider1.base.acFlags &= ~AC_HIT;
|
||||
if (this->actor.colChkInfo.damageEffect != 2) {
|
||||
if (this->actor.colChkInfo.damageEffect == 0xF) {
|
||||
switch (this->actor.colChkInfo.damageEffect) {
|
||||
case 0xF:
|
||||
Actor_ApplyDamage(&this->actor);
|
||||
Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0x2000, 8);
|
||||
if (this->actor.colChkInfo.health) {
|
||||
if (this->actor.colChkInfo.health != 0) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DAMAGE);
|
||||
vec.x = this->actor.world.pos.x;
|
||||
vec.y = this->actor.world.pos.y;
|
||||
|
@ -361,16 +361,21 @@ void EnFz_ApplyDamage(EnFz* this, PlayState* play) {
|
|||
EnFz_Damaged(this, play, &vec, 30, 10.0f);
|
||||
EnFz_SetupDespawn(this, play);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Actor_ApplyDamage(&this->actor);
|
||||
Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0x2000, 8);
|
||||
if (this->actor.colChkInfo.health == 0) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DEAD);
|
||||
EnFz_SetupMelt(this);
|
||||
} else {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DAMAGE);
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
Actor_ApplyDamage(&this->actor);
|
||||
Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0x2000, 8);
|
||||
if (this->actor.colChkInfo.health == 0) {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DEAD);
|
||||
EnFz_SetupMelt(this);
|
||||
} else {
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DAMAGE);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue