rem: console.write( "DamageModify aura: taking away " + this.bonus + " damage from " + e ); 
context: function DamageModifyAura ( source, ally, bonus ){	// Defines the effects of the DamageModify Aura. (Adjacent units have modified attack bonus.)	// The Courage Aura uses this function to give attack bonus to allies.		// The Fear Aura uses this function to give attack penalties to enemies.	this.source = source;	this.bonus = bonus;	this.ally = ally;		this.affects = function( e ) 	{		if( this.ally )		{			return ( e.player.id == this.source.player.id && e.actions && e.actions.attack );		}		else		{			return ( e.player.id != this.source.player.id && e.actions && e.actions.attack );		}	}		this.onEnter = function( e ) 	{		if( this.affects( e ) ) 		{			console.write( "DamageModify aura: giving " + this.bonus + " damage to " + e );			e.actions.attack.damage += this.bonus;		}	};		this.onExit = function( e ) 	{		if( this.affects( e ) ) 		{			console.write( "DamageModify aura: taking away " + this.bonus + " damage from " + e );			e.actions.attack.damage -= this.bonus;		}	};}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/c6c006d4fe66743bdc399a80e96340a90ca4203c/template_entity_script.js/buggy/binaries/data/mods/official/entities/template_entity_script.js