1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
9 | * the terms of the Affero GNU General Public License as published by the |
… | |
… | |
1273 | /* for target facing, we copy this value here for fast access */ |
1273 | /* for target facing, we copy this value here for fast access */ |
1274 | if (oph->head) /* force update the head - one arch one pic */ |
1274 | if (oph->head) /* force update the head - one arch one pic */ |
1275 | oph = oph->head; |
1275 | oph = oph->head; |
1276 | |
1276 | |
1277 | if (op->flag [FLAG_NO_ATTACK]) /* we never ever attack */ |
1277 | if (op->flag [FLAG_NO_ATTACK]) /* we never ever attack */ |
1278 | enemy = op->enemy = NULL; |
1278 | enemy = op->enemy = 0; |
1279 | else if ((enemy = find_enemy (op, &rv))) |
1279 | else if ((enemy = find_enemy (op, &rv))) |
1280 | /* we have an enemy, just tell him we want him dead */ |
1280 | /* we have an enemy, just tell him we want him dead */ |
1281 | enemy->attacked_by = op; /* our ptr */ |
1281 | enemy->attacked_by = op; /* our ptr */ |
1282 | |
1282 | |
1283 | /* generate hp, if applicable */ |
1283 | /* generate hp, if applicable */ |