Пример #1
0
function attack_finish(&$pa, &$pd, $active)
{
    if (eval(__MAGIC__)) {
        return $___RET_VALUE;
    }
    player_damaged_enemy($pa, $pd, $active);
    if ($pd['hp'] <= 0) {
        player_kill_enemy($pa, $pd, $active);
        \player\player_save($pa);
        \player\player_save($pd);
        if ($active) {
            \player\load_playerdata($pa);
        } else {
            \player\load_playerdata($pd);
        }
    }
    unset($pa['physical_dmg_dealt']);
}
Пример #2
0
function attack_finish(&$pa, &$pd, $active)
{
    if (eval(__MAGIC__)) {
        return $___RET_VALUE;
    }
    player_damaged_enemy($pa, $pd, $active);
    if ($pd['hp'] <= 0) {
        player_kill_enemy($pa, $pd, $active);
    }
    unset($pa['physical_dmg_dealt']);
}