View Single Post
  #2  
Old 12-26-2014, 02:52 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

I have not compiled this myself but perhaps something like this may work:

Code:
if(IsClient()) {
		const ItemInst *wpn = CastToClient()->GetInv().GetItem(MainPrimary);
		bool havePiercer = true;
		if(!wpn || (wpn->GetItem()->ItemType != ItemType1HPiercing)){
			havePiercer = false;
		}
		if(wpn->GetItem()->ItemType == ItemType2HPiercing || havePiercer == true){
			havePiercer = true;
		}
		if(havePiercer == false) {
			Message_StringID(13, BACKSTAB_WEAPON);
			return;
		}
	}
Reply With Quote