Batch #1587 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_22583 IsIgnoredRidingState: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Contents/SpriteRidingPolicy.cpp
25 lines
575 B
C++
25 lines
575 B
C++
#include "Contents/SpriteRidingPolicy.h"
|
|
#include "Client/Session.h"
|
|
#include "Contents/Jobs/JobNames.h"
|
|
#include "Script/LuaScript.h"
|
|
|
|
// OFFSET: 0x00DAB2C0
|
|
// FUNCTION: fn_22583
|
|
bool IsIgnoredRidingState(int id, int job, int effectState, bool force) {
|
|
if (!force && job == JobNames::BaseJob(job)) {
|
|
return false;
|
|
}
|
|
|
|
switch (effectState) {
|
|
case 0:
|
|
case 8:
|
|
case 16:
|
|
case 64: {
|
|
bool ignored = false;
|
|
g_session.m_hotkeyScript->CallTable("TB_Layer_Priority", "IsIgnoredRidingState", "d>b", id, &ignored);
|
|
return ignored;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|