ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/rune.C
(Generate patch)

Comparing deliantra/server/server/rune.C (file contents):
Revision 1.22 by root, Wed Mar 14 04:12:29 2007 UTC vs.
Revision 1.23 by elmex, Mon Apr 16 11:50:45 2007 UTC

271 if (rv.distance > 1) 271 if (rv.distance > 1)
272 return; 272 return;
273 273
274 trap_show (trap, env); 274 trap_show (trap, env);
275 275
276 if (victim->type == PLAYER) // only count players as enemies
277 trap->enemy = victim; // set the victim as the traps enemy, so that summoned
278 // creatures know who to attack.
279
276 /* Only if it is a spell do we proceed here */ 280 /* Only if it is a spell do we proceed here */
277 if ((trap->inv && trap->inv->type == SPELL) || (trap->other_arch && trap->other_arch->clone.type == SPELL)) 281 if ((trap->inv && trap->inv->type == SPELL) || (trap->other_arch && trap->other_arch->clone.type == SPELL))
278 { 282 {
279 283
280 if (trap->destroyed ()) 284 if (trap->destroyed ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines