View Single Post
  #1  
Old 01-04-2004, 12:54 PM
segatron11
Fire Beetle
 
Join Date: Dec 2003
Posts: 6
Default Fix for Bind Sight

Here is spells.cpp change, I made it so the bind sight line of spells actually works

Spells.cpp line 1894
Code:
else{
			caston->source_id = caster->GetID();
			castbuff->source_id = caster->GetID();
		} 
// UNALTERED CODE ABOVE (That goes for you trumpcard :p)

		// incubus - Added the bind sight line of spells, just had to change target_id
		// I believe it also adds a stamina loss, so I'll have to add that
		if(spell_id == 500 /* bind sight */ || spell_id == 407 /* cast sight */) // Bind Sight line of spells
		{
			caston->target_id = caster->GetID();
			castbuff->target_id = caster->GetID();
		}
		else {
			caston->target_id = this->GetID();
			castbuff->target_id = this->GetID();
		}

// UNALTERED CODE BELOW (Again, there you go trumpcard, not that hard now was it? :p)
		caston->action = 231;
		caston->spell_id = spell_id;
		castbuff->spell_id = spell_id;
Reply With Quote