View Single Post
  #4  
Old 04-21-2013, 10:50 PM
Alecta Alecta is offline
VIP / Contributor


Join Date: Apr 2013
Location: Red '99
Posts: 271
Default

In spdat.h:

Code:
bool IsDamageShieldSpell(uint16 spell_id);
In spdat.cpp:

Code:
///////////////////////////////////////////////////////////////////////////////
// spell property testing functions

bool IsDamageShieldSpell(uint16 spell_id)
{
	return IsEffectInSpell(spell_id, SE_DamageShield);
}
In attack.cpp (adapt as is necessary, as I am sure its customized):
Code:
	// cut all PVP spell damage to 2/3 -solar
	// EverHood - Blasting ourselfs is considered PvP 
	//Don't do PvP mitigation if the caster is damaging himself
	if(other && other->IsClient() && (other != this) && damage > 0 && !IsDamageShieldSpell(spell_id) ) {