Pryaxis / Terraria

The unofficial Terraria issue tracker.
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

The Venom buff from Venom Arrows cannot be applied to players in PvP #8

Closed drunderscore closed 2 years ago

drunderscore commented 2 years ago

Is there an existing issue for this?

Tested platforms

Reproduction steps (if known)

Additional information

The Venom buff (ID 70) is missing from the Main.pvpBuff array. Because of this, the following check in MessageBuffer when receiving packet 55 (AddPlayerBuff) fails:

// If we are a dedicated server, and the target isn't myself/the same player, and this is not a PvP buff
if (Main.netMode == 2 && num144 != this.whoAmI && !Main.pvpBuff[num145])
{
    return;
}

Simply setting Main.pvpBuff[70] = true; would mitigate the issue.

drunderscore commented 2 years ago

PR https://github.com/Pryaxis/TShock/pull/2453 will patch this in TShock

drunderscore commented 2 years ago

This was resolved in 1.4.4