Changeset 186 for trunk/src/game/Spell.h
- Timestamp:
- 11/19/08 13:44:25 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Spell.h
r174 r186 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 579 579 { 580 580 case SPELL_TARGETS_FRIENDLY: 581 if (!itr->getSource()->is TargetableForAttack() || !i_caster->IsFriendlyTo( itr->getSource() ))581 if (!itr->getSource()->isAttackableByAOE() || !i_caster->IsFriendlyTo( itr->getSource() )) 582 582 continue; 583 583 break; … … 586 586 if(itr->getSource()->GetTypeId()==TYPEID_UNIT && ((Creature*)itr->getSource())->isTotem()) 587 587 continue; 588 if(!itr->getSource()->is TargetableForAttack())588 if(!itr->getSource()->isAttackableByAOE()) 589 589 continue; 590 590