Apply patch #689 (Friendly healer+4 stop poison)
This commit is contained in:
parent
f4272d5a74
commit
489c8527e4
2 changed files with 3 additions and 2 deletions
|
@ -35,6 +35,7 @@ Version 1.3.1+svn:
|
|||
* user interface:
|
||||
* new sounds for user interface events
|
||||
* misceleanous bug fixes
|
||||
* an friendly healer hill now stop poisoned unit to lose HP
|
||||
* a unit that dies while attacking will now correctly play it's own death
|
||||
* turn bell can sound if other soundFX are turned off
|
||||
|
||||
|
|
|
@ -1332,11 +1332,11 @@ void calculate_healing(display& disp, const gamemap& map,
|
|||
|
||||
unit_ability_list heal = i->second.get_abilities("heals",i->first);
|
||||
// Only consider healers on side which is starting now
|
||||
// remove all healers not on this side
|
||||
// remove all healers enemy of this side
|
||||
for(std::vector<std::pair<config*,gamemap::location> >::iterator h_it = heal.cfgs.begin(); h_it != heal.cfgs.end();) {
|
||||
unit_map::iterator potential_healer = units.find(h_it->second);
|
||||
wassert(potential_healer != units.end());
|
||||
if(potential_healer->second.side()!=side) {
|
||||
if(teams[potential_healer->second.side()-1].is_enemy(side)) {
|
||||
heal.cfgs.erase(h_it);
|
||||
} else {
|
||||
++h_it;
|
||||
|
|
Loading…
Add table
Reference in a new issue