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.39 by root, Sun Jan 4 22:39:59 2009 UTC vs.
Revision 1.41 by root, Tue May 5 04:51:56 2009 UTC

237 /* Prevent recursion */ 237 /* Prevent recursion */
238 if (trap->stats.hp <= 0) 238 if (trap->stats.hp <= 0)
239 return; 239 return;
240 240
241 if (QUERY_FLAG (trap, FLAG_IS_LINKED)) 241 if (QUERY_FLAG (trap, FLAG_IS_LINKED))
242 use_trigger (trap); 242 use_trigger (trap, victim);
243 243
244 /* Only living objects can trigger runes that don't cast spells, as 244 /* Only living objects can trigger runes that don't cast spells, as
245 * doing direct damage to a non-living object doesn't work anyway. 245 * doing direct damage to a non-living object doesn't work anyway.
246 * Typical example is an arrow attacking a door. 246 * Typical example is an arrow attacking a door.
247 */ 247 */
409{ 409{
410 if (where == NULL) 410 if (where == NULL)
411 return 0; 411 return 0;
412 412
413 object *tmp = get_archetype ("runedet"); 413 object *tmp = get_archetype ("runedet");
414 tmp->face = GET_ANIMATION (trap, 0); 414 tmp->face = trap->get_anim_frame (0);
415 tmp->insert_at (where, 0); 415 tmp->insert_at (where, 0);
416 416
417 return 1; 417 return 1;
418} 418}
419 419

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines