added prompt to throwing potions on baby dragons
This commit is contained in:
@ -145,9 +145,14 @@ long_result player_base::throw_potion(level *lvl, std::unique_ptr<potion> p,
|
||||
character *ch = lvl->get_elist()[flag ^ WHAT_ENEMY];
|
||||
known_potions |= 1 << p->get_type();
|
||||
ch->apply_effect(std::move(p));
|
||||
|
||||
if (ch->get_race() != BABY_DRAGON)
|
||||
return {THROWN, "The potion of " + name +
|
||||
"'s contents spilled on " +
|
||||
ch->get_abbrev() + ". "};
|
||||
|
||||
return {THROWN, "The potion of " + name +
|
||||
"'s contents spilled on " +
|
||||
ch->get_abbrev() + ". "};
|
||||
" didn't seem to affect B. "};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user