Changeset 51 for pycodebattler


Ignore:
Timestamp:
12/16/10 01:10:24 (14 years ago)
Author:
atzm
Message:

fixed a bug, skill target selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pycodebattler/trunk/pycodebattler/skill.py

    r50 r51  
    195195        if type_.range() * (self._level // 2 + 1) < len(targets): 
    196196            return [] 
    197         if not set(targets).issubset(set(warriors)): 
     197        if not set(targets).issubset(set(self.selectable(attacker, warriors))): 
    198198            return [] 
    199199 
Note: See TracChangeset for help on using the changeset viewer.