From 48f785a271089f4f85bdfb5624b56b433e0ebd13 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Thu, 5 Nov 2009 19:28:56 +0300 Subject: Replace uses of player_is_airborne with you.airborne. Signed-off-by: Robert Vollmert --- crawl-ref/source/spells4.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 84af39d6f3..7faa22b550 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -788,7 +788,7 @@ static int _discharge_monsters(coord_def where, int pow, int, actor *) mpr("You are struck by lightning."); damage = 3 + random2(5 + pow / 10); damage = check_your_resists( damage, BEAM_ELECTRICITY ); - if (player_is_airborne()) + if (you.airborne()) damage /= 2; ouch(damage, NON_MONSTER, KILLED_BY_WILD_MAGIC); } -- cgit v1.2.3-54-g00ecf