Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions soh/soh/Network/CrowdControl/CrowdControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ CrowdControl::Effect* CrowdControl::ParseMessage(nlohmann::json dataReceived) {
break;
case kEffectSpawnWolfos:
effect->spawnParams[0] = ACTOR_EN_WF;
// Match EnEncount1 wolfos spawner (0xFF00): high byte must be 0xFF so EnWf_Init does not treat
// switchFlag 0; Flags_GetSwitch(play, 0) is true in many scenes and would instantly kill the actor.
effect->spawnParams[1] = (0xFF << 8) | 0x00; // normal Wolfos; high byte 0xFF = no switch (vanilla encount)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
effect->spawnParams[1] = (0xFF << 8) | 0x00; // normal Wolfos; high byte 0xFF = no switch (vanilla encount)
effect->spawnParams[1] = 0xFF00; // normal Wolfos; high byte 0xFF = no switch (vanilla encount)

effect->category = kEffectCatSpawnEnemy;
break;
case kEffectSpawnWallmaster:
Expand Down
Loading