Fixed ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING by using total fall distance instead of fall time. This distance might be used for a more accurate fall damage formula in a later version.

This commit is contained in:
arrai 2008-11-08 16:26:00 +01:00
parent 0a783585e0
commit eb0cfe7fec
3 changed files with 12 additions and 5 deletions

View file

@ -304,9 +304,8 @@ void AchievementMgr::UpdateAchievementCriteria(AchievementCriteriaTypes type, ui
if(!gameeventmgr.IsActiveEvent(26))
continue;
}
// miscvalue1 is falltime, calculate to fall height format given in dbc
uint32 fallHeight = uint32(0.06f*miscvalue1-91.5)*100;
SetCriteriaProgress(achievementCriteria, fallHeight);
// miscvalue1 is the ingame fallheight*100 as stored in dbc
SetCriteriaProgress(achievementCriteria, miscvalue1);
break;
}
case ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST: