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

Comparing deliantra/server/server/spell_attack.C (file contents):
Revision 1.71 by root, Mon Dec 22 21:51:11 2008 UTC vs.
Revision 1.72 by root, Sat Dec 27 08:01:07 2008 UTC

1498 if (!(mflags & P_IS_ALIVE)) 1498 if (!(mflags & P_IS_ALIVE))
1499 continue; 1499 continue;
1500 1500
1501 // players can only affect spaces that they can actually see 1501 // players can only affect spaces that they can actually see
1502 if (caster && caster->contr 1502 if (caster && caster->contr
1503 && caster->contr->visibility_at (m, nx, ny) < 70) 1503 && caster->contr->darkness_at (m, nx, ny) == LOS_BLOCKED)
1504 continue; 1504 continue;
1505 1505
1506 for (tmp = GET_MAP_TOP (m, nx, ny); tmp; tmp = tmp->below) 1506 for (tmp = GET_MAP_TOP (m, nx, ny); tmp; tmp = tmp->below)
1507 if (QUERY_FLAG (tmp, FLAG_MONSTER)) 1507 if (QUERY_FLAG (tmp, FLAG_MONSTER))
1508 break; 1508 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines