• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TFS 1.x][C++] Poison Bug

Peonso

Godly Member
Joined
Jan 14, 2008
Messages
1,788
Solutions
30
Reaction score
1,592
No, you cannot compare a boolean value with a numeric value.

You might want to look into Game::combatChangeHealth, and change so that it returns false here.
 
Note that my "fix" will only allow a player to be poisoned when they take damage. Which is fine for snakes, but scorpions, for example, don't have to draw blood to poison a player.
 
Note that my "fix" will only allow a player to be poisoned when they take damage. Which is fine for snakes, but scorpions, for example, don't have to draw blood to poison a player.
Well, I think the incorrect behavior of only poisoning when you get a hit is "less worse". If I change the line pointed by Ninja I will get no downside? Only this will be changed?
 
No, you cannot compare a boolean value with a numeric value.

You might want to look into Game::combatChangeHealth, and change so that it returns false here.
Note that my "fix" will only allow a player to be poisoned when they take damage. Which is fine for snakes, but scorpions, for example, don't have to draw blood to poison a player.

It fucked up envenon/soulfire runes. I also get poffs as if I'm blocking the poison damage, even if it's "not" applied.
 
Back
Top