in the special_attacks.cpp around line 513. In the top example it seems to break backstab all together and the client wont recognize 1hp anymore (white client message that you need a piercing in mainhand). In the 2nd example 1hp works but 2hp still gives a red feedback must have a piercing weapon in primary... Any help would be appreciated, I wanted to add 2hp to rogue weapon options.
EDIT: I am not really expecting the && symbol to fix it, I tried a bunch of things including OR but never got anythign to really work just posting some of my trials.
Code:
if(IsClient()) {
const ItemInst *wpn = CastToClient()->GetInv().GetItem(MainPrimary);
if(!wpn || (wpn->GetItem()->ItemType != ItemType2HPiercing) || (wpn->GetItem()->ItemType != ItemType1HPiercing)){
Message_StringID(13, BACKSTAB_WEAPON);
return;
Code:
if(IsClient()) {
const ItemInst *wpn = CastToClient()->GetInv().GetItem(MainPrimary);
if(!wpn || (wpn->GetItem()->ItemType != ItemType2HPiercing) && (wpn->GetItem()->ItemType != ItemType1HPiercing)){
Message_StringID(13, BACKSTAB_WEAPON);
return;